Commit ffeb5f6c by BellCodeEditor

save project

parent 2d599679
Showing with 19 additions and 1 deletions
# 玩家出拳
p = input("请出拳(石头/剪刀/布):")
print("玩家出拳:" + p)
# 计算机出拳
import random
list=["石头","剪刀","布"]
c=random.choice(list)
print(c)
if p==c:
print("平局")
elif (c=="石头" and p=="布")or(c=="布" and p=="剪刀")or(c=="剪刀" and p=="石头"):
print("你赢了")
else:
print("你输了")
\ No newline at end of file
 
import turtle
screen=turtle.Screen()
screen=bgcolor("black")
screen.bgcolor("black")
color=["red","orange","green","yellow"]
pen=turtle.Pen()
for i in range(1,300):
......
i=5
j=7
print(i,"*",j,"="(i*j))
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