Commit 4abc8b10 by BellCodeEditor

save project

parent ef07fa43
Showing with 13 additions and 2 deletions
a=input("玩家出:")
print("玩家出了"+a)
import random
list=["石头"""]
\ No newline at end of file
list=["石头","剪刀","布"]
d=random.choice(list)
input("计算机出"+d)
if a==d:
print("平")
elif (a=="剪刀" and b=="布")or(a=="石头" and d=="剪刀")or(a=="布" and d=="石头"):
print("牛")
else:
print("菜")
\ 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