Commit a1873e1a by BellCodeEditor

save project

parent 612399e3
Showing with 15 additions and 13 deletions
#QWEEW
play = input("出拳")
import random
print("play"+play)
list=['石',"剪","布"]
cumputer=random.choice(list)
print("cumputer"+cumputer)
if play==cumputer:
print("平")
elif (play=="布" and cumputer=="石") or (play=="剪" and cumputer=="布") or (play=="石" and cumputer=="剪"):
print("贏")
else:
print("輸")
\ No newline at end of file
import random
while True:
play = input("出拳")
if pliy in list:
print("play"+play)
list=['石',"剪","布"]
cumputer=random.choice(list)
print("cumputer"+cumputer)
if play==cumputer:
print("平")
elif (play=="布" and cumputer=="石") or (play=="剪" and cumputer=="布") or (play=="石" and cumputer=="剪"):
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