Commit 781e31f5 by BellCodeEditor

save project

parent 512a7730
Showing with 11 additions and 2 deletions
import random
list=["石头""剪刀""布"]
computer=random.choice(list)
print(computer)
\ No newline at end of file
print(computer)
if computer==player:
print(平局,***k)
elif computer"石头" and player="布"
print(Win)
elif computer="布" and player="剪刀"
print(win)
elif computer="剪刀" and player="石头"
print(win)
else print(Lose)
\ 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