Commit e6a28c32 by BellCodeEditor

save project

parent 65ad65f9
Showing with 7 additions and 3 deletions
...@@ -7,9 +7,12 @@ list=["石头","剪刀","布"] ...@@ -7,9 +7,12 @@ list=["石头","剪刀","布"]
computer=random.choice(liet) computer=random.choice(liet)
print(computer) print(computer)
#显出结果 #显出结果
if player==computer if player in list:
if player==computer
print("平局") print("平局")
elif (player=="石头"and computer=="剪刀")or(player=="剪刀" ar elif (player=="石头"and computer=="剪刀")or(player=="剪刀" ar
print("恭喜,你赢了") print("恭喜,你赢了")
else: else:
print("bjy hgvy7i 5") print("bjy hgvy7i 5")
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