Commit d3c372fc by BellCodeEditor

save project

parent 8ceb02e0
Showing with 10 additions and 2 deletions
import random
a = random.randint(1,3)
player=input('玩家出拳(石头/剪刀/布):') player=input('玩家出拳(石头/剪刀/布):')
print('玩家出拳'+player) print('玩家出拳'+player)
\ No newline at end of file if a == 1:
print('计算机出石头')
elif a == 2:
print('计算机出剪刀')
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