Commit 408d90fb by BellCodeEditor

save project

parent 9b821a9e
Showing with 3 additions and 1 deletions
import random import random
while True:
player=input("玩家出石头/剪刀/布")
print(player)
a=["剪刀","石头","布"] a=["剪刀","石头","布"]
b=random.choice(a) b=random.choice(a)
print(b) print(b)
while True:
if player==b: if player==b:
print("平局") print("平局")
elif player=="剪刀" and b=="布": elif player=="剪刀" and b=="布":
......
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