Commit c0a16e44 by BellCodeEditor

save project

parent c484869b
Showing with 5 additions and 6 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 player=input("请出拳:石头/剪刀/布")
print("玩家出拳:"+player) print("玩家出拳:"+player)
import random import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
...@@ -8,6 +8,5 @@ if player==computer: ...@@ -8,6 +8,5 @@ if player==computer:
print("平局") print("平局")
elif player=="石头"and computer=="剪刀":print("恭喜,你赢了") elif player=="石头"and computer=="剪刀":print("恭喜,你赢了")
elif player=="布"and computer=="石头":print("恭喜,你赢了") elif player=="布"and computer=="石头":print("恭喜,你赢了")
elif player=="剪刀"and computer=="布":print("恭喜,你赢了")· elif player=="剪刀"and computer=="布":print("恭喜,你赢了")
else: else:("很遗憾,你输了")
("很遗憾,你输了") \ No newline at end of file
\ No newline at end of file
...@@ -3,7 +3,7 @@ import turtle ...@@ -3,7 +3,7 @@ import turtle
#创建画笔 #创建画笔
pen=turtle.Pen() pen=turtle.Pen()
#写字 #写字
pen.write("诺依, \n我会在画布上写字啦!",font=("Times",20,"normal")) pen.write("傻逼,快点画",font=("Times",30,"normal"))
#隐藏画笔 #隐藏画笔
pen.hideturtle() pen.hideturtle()
#保存画布 #保存画布
......
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