8000 update · CodingCoffee-01/python_tutorial@2d07f4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d07f4c

Browse files
update
1 parent 93204c3 commit 2d07f4c

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

turtle_ex1.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from turtle import *
2+
import time
3+
forward(100)
4+
forward(100)
5+
left(120)
6+
forward(100)
7+
pause(5)
8+
9+
10+
time.sleep(5)

turtle_ex2.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from turtle import *
2+
import time
3+
print("sleep before")
4+
forward(100)
5+
forward(100)
6+
left(120)
7+
forward(100)
8+
time.sleep(5)
9+
print("sleep after")

vp_spere.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from vpython import *
2+
sphere()

vpython1_1.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from visual import *
2+
3+
# the first ellipsoid
4+
ellipsoid(pos = vector(-2, 2, 0),
5+
length = 3,
6+
height = 2,
7+
width = 2,
8+
color = vector(1, 0.6, 0))
9+
10+
# the second ellipsoid
11+
ellipsoid(pos = vector(1, -1, 5),
12+
width = 3,
13+
color = vector(0, 1, 0))

0 commit comments

Comments
 (0)
0