Commit 31844a4b by BellCodeEditor

auto save

parent c8ce2740
Showing with 44 additions and 2 deletions
p=int(input("请输入带的元数:"))
d=int(input("请输入本子的单价:"))
s=int(input("请输入购入的数量:"))
if d*s>p:
print("false")
else:
print("true")
\ No newline at end of file
import math
import turtle
pen=turtle.Pen()
pen.fillcolor("blue")
pen.begin_fill()
for i in range(3):
pen.forward(180)
pen.left(120)
pen.end_fill()
pen.forward(90)
pen.left(90)
pen.forward(math.sqrt(180**2-90**2))
pen.left(150)
pen.forward(90)
pen.fillcolor("red")
pen.begin_fill()
pen.circle(52)
pen.end_fill()
pen.forward(90)
pen.left(120)
pen.forward(90)
pen.left(90)
pen.forward(math.sqrt(180**2-90**2))
turtle.done()
\ No newline at end of file
print("hello,world!") p=int(input("请输入带的元数:"))
\ No newline at end of file d=int(input("请输入本子的单价:"))
s=int(input("请输入购入的数量:"))
if d*s>p:
print("false")
else:
print("true")
\ 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