Commit dd145a88 by BellCodeEditor

save project

parent 9ecc73ea
Showing with 9 additions and 0 deletions
...@@ -4,3 +4,11 @@ import random ...@@ -4,3 +4,11 @@ import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
comxxxx=random.choice(list) comxxxx=random.choice(list)
print(comxxxx) print(comxxxx)
if player==comxxxx:
print("ping")
elif (player=="石头"and comxxxx=="剪刀")or(player=="剪刀"and comxxxx=="布")or(player=="布"and comxxxx=="石头"):
print("ying")
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