Commit 7308fa61 by BellCodeEditor

save project

parent c2a1029c
Showing with 917 additions and 2 deletions
'''name=input("请输入:") '''name=input("请输入:")
print(name+"你是最棒的创造师"''' print(name+"你是最棒的创造师)"'''
'''import turtle '''import turtle
pen=turtle.Pen() pen=turtle.Pen()
...@@ -7,7 +7,886 @@ for i in range(5): ...@@ -7,7 +7,886 @@ for i in range(5):
pen.forward(150) pen.forward(150)
pen.left(144) pen.left(144)
turtle.done()''' turtle.done()'''
import random
player=input("石头,剪刀,布:")
print(player)
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if player in list:
if player==computer:
print("平局")
elif player=="石头" and computer=="剪刀":
print("你赢了")
elif player=="剪刀" and computer=="布":
print("你赢了")
elif player=="布" and computer=="石头":
print("你赢了")
else:
print("你输了")
else:
print("输入错误")
player=input()
player=input("请出石头/剪刀/布:")
print("请出拳:"+player)
import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if player in list:
if player==computer:
print("平局")
elif player=="石头" and computer=="剪刀":
print("恭喜你赢了")
elif player=="剪刀" and computer=="布":
print("恭喜你赢了")
elif player=="布" and computer=="石头":
print("恭喜你赢了")
else:
print("很遗憾,你输了")
'''name=input("勇敢的创造师你叫什么呀")
print(name+",你真棒")'''
"""import turtle
pen=turtle.Pen()
color=input("你想要什么颜色的星星")
pen.fillcolor(color)
pen.shape("turtle")
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
pen.hideturtle()
turtle.done()"""
player=input("请出石头/剪刀/布:")
print("请出拳:"+player)
import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if player in list:
if player==computer:
print("平局")
elif player=="石头" and computer=="剪刀":
print("恭喜你赢了")
elif player=="剪刀" and computer=="布":
print("恭喜你赢了")
elif player=="布" 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