Commit 093dc22e by BellCodeEditor

save project

parent 9c9ee837
Showing with 2208 additions and 0 deletions
......@@ -2,3 +2,2210 @@ palyer=input("请出拳:""石头"/"剪刀"/"布")
print("玩家出拳"+palyer)
SB=("石头"/"剪刀"/"布")
print("电脑出拳"+random.choice(SB))
if palyer==computer:
print("平局")
elif palyer=="布"and computer=="石头":
print("赢")
elif palyer=="石头"and computer=="剪刀":
print("赢")
elif palyer=="剪刀"and computer=="布":
print("赢")
elif palyer=="布"and computer=="石头":
print("赢")
else:
pass
\ 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