Commit 93429768 by BellCodeEditor

auto save

parent 25abb509
Showing with 20 additions and 3 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 # print(12) #输出、打印
print("玩家出拳:"+player) # print("你好") #打印字符串
\ No newline at end of file # print("&(VY@") #打印特殊符号
# print(10+9-22) #数学运算
# print(12, "你好", "*(&)", 3+98)
# 海龟画图
import turtle #1、导入海龟画图
p1 = turtle.Pen() #2、创建一支画笔
p1.shape("turtle") #设置画笔形状
# 'arrow'箭头, 'turtle'海龟, 'circle'圆,
# 'square'方形, 'triangle'三角形, 'classic'默认.
p1.color("red") #设置画笔颜色
p1.pencolor("blue")
for i in range(5): #重复执行
p1.forward(100) #前进
p1.left(72) #转弯
turtle.done() #3、画布保持不关闭
\ 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