Commit 7c6d82e5 by BellCodeEditor

save project

parent 03453cc1
Showing with 9 additions and 6 deletions
import random player(input(“请出拳("剪刀""石头""布")))
player(input(“请出拳("剪刀""石头""布")))
print(“玩家出拳”+player)
import random import random
i=["剪刀","石头""布"] i=["剪刀","石头","布"]
o=random.choice(i) o=random.choice(i)
print("鸡鸡出拳"+o) print("鸡鸡出拳"+o)
if piayer==o: if piayer==o:
print(ping) print("ping")
elif player=="石头" and o=="剪刀" or player=="剪刀" and o=="布" or player=="布" and o=="石头": elif player=="石头" and o=="剪刀" or player=="剪刀" and o=="布" or player=="布" and o=="石头":
print(win) print("win")
else: else:
print(lost) print("lose")
\ No newline at end of file \ 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