Commit 455824e6 by BellCodeEditor

save project

parent a2250bae
Showing with 13 additions and 2 deletions
import random
cai = input("123":)
list = ["石头","剪刀","布"]
am = random.choice(list)
print(am)
\ No newline at end of file
if am ==cai:
print("平局")
elif cai =="剪刀" and am =="布"
print("胜利")
elif cai =="布" and am =="石头"
print("胜利")
elif cai =="石头" and am =="剪刀"
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