Commit f06ce63e by BellCodeEditor

save project

parent 1c95c543
Showing with 7 additions and 6 deletions
玩家=input('石头'/'剪刀'/'布') if 玩家==电脑:
import random print('平局')
SJB=['石头','剪刀','布'] elif 玩家==石头 and 电脑==剪刀 or 玩家==剪刀 and 电脑== or 玩家== and 电脑==石头:
电脑=random.choice(SJB) print('赢了')
print(玩家+'(玩家)'+'vs'+电脑+'(电脑)') else:
\ No newline at end of file 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