Commit 96f3ef25 by BellCodeEditor

save project

parent db4ec920
Showing with 59 additions and 0 deletions
"""
print("hello world")
name = " Jake "
word = "TANKE YOU"
print(name+word)
num = 9
float_num = 3.1415926
name = " Jake "
goods = ["雪碧","可乐","咖啡"]
print(type(num))
print(type(float_num))
print(type(name))
print(type(goods))
import turtle
pen = turtle.Pen()
pen.shape('turtle')
pen.forward(100)
pen.left(60)
pen.forward(100)
turtle.done()
#使用turtle模块画出五角星
import turtle
pen = turtle.Pen()
for i in range (5):
pen.forward(200)
pen.left(144)
turtle.done()
#给五角星填上红色
import turtle
pen = turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range (5):
pen.forward(200)
pen.left(144)
pen.end_fill()
turtle.done()
#使用turtle模块
#尝试让画笔重复移动36次
#每次移动200步,旋转170度
"""
import turtle
pen = turtle.Pen()
pen.speed(1000)
pen.color("blue")
pen.fillcolor("red")
pen.begin_fill()
for i in range(36)
pen.forward(200)
pen.left(170)
pen.end_fill()
turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment