Commit c10f635b by BellCodeEditor

save project

parent b7337a0b
Showing with 11 additions and 7 deletions
# 玩家出拳 # 玩家出拳
while True:
p = input("妈的,猜拳还怎么慢,快出") p = input("妈的,猜拳还怎么慢,快出")
print("出的啥呀?"+p) print("出的啥呀?"+p)
import random as r import random as r
list=["石头啊","剪刀呦","布欸"] list=["石头啊","剪刀呦","布欸"]
c=r.choice(list) c=r.choice(list)
print("该我了"+c) print("该我了"+c)
if p in list:
if p == ai: if p == ai:
print("小伙子不错,平局") print("小伙子不错,平局")
elif p == "石头" and c == "剪刀": elif p == "石头" and c == "剪刀":
...@@ -16,3 +17,5 @@ while True: ...@@ -16,3 +17,5 @@ while True:
print("woc,你赢了") print("woc,你赢了")
else: else:
print("噫,你输了") 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