Commit cded0e45 by BellCodeEditor

save project

parent 4c282fd4
Showing with 5 additions and 3 deletions
...@@ -2,7 +2,7 @@ list=['石',"剪","布"] ...@@ -2,7 +2,7 @@ list=['石',"剪","布"]
import random import random
while True: while True:
play = input("出拳") play = input("出拳")
if pliy in list: if play in list:
print("play"+play) print("play"+play)
list=['石',"剪","布"] list=['石',"剪","布"]
cumputer=random.choice(list) cumputer=random.choice(list)
...@@ -12,4 +12,6 @@ while True: ...@@ -12,4 +12,6 @@ while True:
elif (play=="布" and cumputer=="石") or (play=="剪" and cumputer=="布") or (play=="石" and cumputer=="剪"): elif (play=="布" and cumputer=="石") or (play=="剪" and cumputer=="布") or (play=="石" and cumputer=="剪"):
print("贏") print("贏")
else: else:
print("輸") print("輸")
\ No newline at end of file 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