Commit 78ea3f77 by BellCodeEditor

save project

parent a69b8bc7
Showing with 9 additions and 3 deletions
......@@ -9,6 +9,13 @@ for i in range(5):
pen.forwad(200)
pen.right(144)
pen.end_fill()
turtle.done()'''
turtle.done()
a=input("请出拳剪刀或石头或布")
print("玩家出拳",a)
\ No newline at end of file
print("玩家出拳:",a)'''
import random
list=['剪刀','石头','布']
a=input("请出拳剪刀或石头或布")
b=random.choice(list)
print("玩家出拳:",a)
print("电脑出拳",b)
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