Commit 888f16fa by BellCodeEditor

save project

parent 1b7f56fe
Showing with 8 additions and 4 deletions
......@@ -4,10 +4,14 @@ u=input("石头,剪刀,布:")
print("khuj"+u)
a=random.choice(f)
print(f)
if a==u:
print("平局")
elif(a=="石头"and u=="布")or (a=="剪刀"and u="石头")or (a=="布" and u= 剪刀):
print("胜利")
if u in f:
if a==u:
print("平局")
elif(a=="石头"and u=="布")or (a=="剪刀"and u="石头")or (a=="布" and u= 剪刀):
print("胜利")
else:
print("输入错误")
......
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