Commit 4203a1db by BellCodeEditor

save project

parent 2b5b48f8
Showing with 8 additions and 3 deletions
piayer=input("...(././.)") player=input("...(././.)")
print("..."+piayers) print("..."+piayers)
import random import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
computr=random.choice(list) computr=random.choice(list)
print(computer) print(computer)
\ No newline at end of file if player==computer
print("平局")
elif(player=="石头" and computr=="剪刀")or(player=="剪刀" and computr=="布")or(player=="布" and computr=="石头")
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