Commit b47df1c5 by BellCodeEditor

auto save

parent ecc99bdc
Showing with 31 additions and 0 deletions
#print('你好')
name = '王宇鹏'
print(name+'欢迎到来')
print(name+'你好呀!')
num = 34 #变量用来存储数据的
a = 34.0
print(num + 30)
# int (整数) str(字符串) float(浮点) list (列表)
#type()查看数据类型的
print(type(num))
import turtle #导入模块
pen = turtle.Pen() #创建画笔
pen.pencolor('red') #设置画笔颜色
pen.shape('turtle') #设置画笔形状
pen.forward(100) #移动
pen.right(90) #右转
pen.forward(100) #移动
pen.right(90) #右转
pen.forward(100) #移动
pen.right(90) #右转
pen.forward(100) #移动
pen.right(90) #右转
pen.hideturtle() #隐藏画笔
turtle.done() #保存画布
\ No newline at end of file
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