Commit 961f15f2 by BellCodeEditor

auto save

parent 7146e481
bg.png

200 KB

bush.png

14.5 KB

cacti.png

5.58 KB

hero1.png

12.4 KB

hero2.png

10.9 KB

hero3.png

11.3 KB

hero4.png

11.5 KB

hero5.png

11.9 KB

import random
player = input("玩家请出拳:(石头/剪刀/布)\n")
print("玩家出:"+player)
list=['石头','剪刀','布']
computer = random.choice(list)
if player == computer:
print("平局")
elif(player == "石头" and computer == "剪刀") or \
(player == "剪刀" and computer == "布") or \
(player == "布" and computer == "石头"):
print("玩家赢")
else:
print("玩家输")
\ No newline at end of file
{"第1名": 0, "第2名": 0, "第3名": 0}
\ No newline at end of file
road.png

34.7 KB

File added
stone.png

11.3 KB

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