Commit 03453cc1 by BellCodeEditor

save project

parent 17f8b3fb
Showing with 8 additions and 1 deletions
import random import random
...@@ -2,3 +2,9 @@ import random ...@@ -2,3 +2,9 @@ import random
i=["剪刀","石头""布"] i=["剪刀","石头""布"]
o=random.choice(i) o=random.choice(i)
print("鸡鸡出拳"+o) print("鸡鸡出拳"+o)
if piayer==o:
print(ping)
elif player=="石头" and o=="剪刀" or player=="剪刀" and o=="布" or player=="布" and o=="石头":
print(win)
else:
print(lost)
\ 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