Commit e68b6fdb by BellCodeEditor

save project

parent 220fe62b
Showing with 14 additions and 0 deletions
# 玩家出拳
player_punch_out=input("punch out")
print("玩家出钱"+player_punch_out)
import random
list1=['石头','剪刀','布']
COM=random.choice(list1)
print("计算机出:"+COM)
if player_punch_out==COM:
print("平局")
elif (player_punch_out=='剪刀'and COM=='布')or(player_punch_out=='石头'and COM=='剪刀')or(player_punch_out=='布'and COM=='石头'):
print('you 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