Commit 03453cc1 by BellCodeEditor

save project

parent 17f8b3fb
Showing with 9 additions and 3 deletions
import random import random
import random import random
i=["剪刀","石头""布"] i=["剪刀","石头""布"]
o=random.choice(i) o=random.choice(i)
print("鸡鸡出拳"+o) print("鸡鸡出拳"+o)
\ No newline at end of file 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