Commit 6c97a0f9 by BellCodeEditor

auto save

parent 72da1a93
Showing with 44 additions and 17 deletions
a=input("钱数")
b=input("数量")
c=input("单价")
if int(a)>=int(b)*int(c):
print("True")
else:
print("False")
\ No newline at end of file
import turtle
turtle.setheading(110)
turtle.pensize(5)
turtle.color("red","yellow")
turtle.begin_fill()
for i in range(5):
turtle.forward(150)
turtle.left(144)
turtle.end_fill()
turtle.done()
\ No newline at end of file
a=input("请输入你的鞋码")
b=(int(a)+10)/2
print("你的脚长是"+str(b)+"厘米")
\ No newline at end of file
import random
while True:
player=input("你要出(石头/剪刀/布):")
print("玩家出:"+player)
a=["石头","剪刀","布"]
computer=random.choice(a)
print("电脑出:"+computer)
if player in a:
if player==comtuter:
print("平局")
elif ((player=="石头" and computer=="剪刀")or(player=="剪刀" and computer=="布")or(player=="布" and computer=="石头")):
print("你赢了")
else:
print("你输了")
else:
print("----请重新输入----")
\ No newline at end of file
import turtle
turtle.pensize(10)
turtle.backward(90)
for i in range(3):
turtle.forward(180)
turtle.left(120)
turtle.forward(90)
turtle.left(90)
turtle.forward(150)
turtle.penup()
turtle.goto(0,0)
turtle.pendown()
turtle.right(90)
turtle.color("black","blue")
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.left(90)
turtle.forward(150)
turtle.done()
\ 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