Commit 7bd7b4be by BellCodeEditor

save project

parent 4ef6b8cf
Showing with 6 additions and 1 deletions
...@@ -8,11 +8,15 @@ computer=random.choice(list) ...@@ -8,11 +8,15 @@ computer=random.choice(list)
print("电脑出拳:"+computer) print("电脑出拳:"+computer)
if PLAYER==computer: if PLAYER==computer:
print("电脑说:平了,再来啊!") print("电脑说:平了,再来啊!")
elif PLAYER=="石头" and computer=="剪刀": elif PLAYER=="石头" and computer=="剪刀":
print("石头狠狠的把剪刀砸烂了。")
print("电脑说:好吧,你赢了") print("电脑说:好吧,你赢了")
elif PLAYER=="剪刀" and computer=="布": elif PLAYER=="剪刀" and computer=="布":
print("剪刀‘咔嚓’一下把布剪成布条。")
print("电脑说:好吧,你赢了") print("电脑说:好吧,你赢了")
elif PLAYER=="布" and computer=="石头": elif PLAYER=="布" and computer=="石头":
print("布把石头紧紧的包住了。")
print("电脑说:好吧,你赢了") print("电脑说:好吧,你赢了")
else: else:
print("电脑说:给爷爬!") 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