Commit 1129bde9 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 18 additions and 0 deletions
# 玩家出拳
import random
answer=input('尊敬的召唤师,您使用什么武器?(泣血之刃,制裁之刃,龙鳞短剑)')
print('召唤师使用武器'+answer)
list=['泣血之刃','制裁之刃','龙鳞短剑']
computer=random.choice(list)
print('觉悟人机使用武器'+computer)
if answer in list:
if answer==computer:
print('武器相同,请继续')
elif (answer=='泣血之刃' and computer=='龙鳞短剑') or (answer=='制裁之刃' and computer=='泣血之刃') or (answer=='龙鳞短剑' and computer=='制裁之刃'):
print('召唤师胜利,恭喜')
else:
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