Commit b39f92a2 by BellCodeEditor

save project

parent 68150d07
a=input("长")
b=input("宽")
c=int(a)*int(b)
print(c)
\ No newline at end of file
f=input("输入爸爸的身高")
m = input("请输入妈妈身高:")
s = input("请输入小孩性别:(男生输入1,女生输入-1)")
print((int(f)) + int(m) + 13* int(s))/2)
\ No newline at end of file
a=input("输入一个三位整数:")
b=a//100
c=a/10%10
d=a%10
print("百:b,十:c,个:d")
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!"
print(message)
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ No newline at end of file
# 请使用索引的知识,取出message所有元素(不用遍历的方式)b.py
\ No newline at end of file
a={'语文':95,'数学':98,'英语':100}
print(a)
import turtle
turtle.penup()
turtle.goto(-100,-100)
turtle.pencolor("black")
turtle.pensize(3)
turtle.hideturtle()
turtle.setheading(90)
turtle.pendown()
turtle.forward(200)
turtle.setheading(0)
turtle.forward(200)
turtle.setheading(-90)
turtle.forward(200)
turtle.setheading(-180)
turtle.forward(200)
turtle.penup()
turtle.pencolor("red")
turtle.goto(0,0)
turtle.fillcolor("red")
turtle.begin_fill()
turtle.pendown()
turtle.circle(20)
turtle.end_fill()
turtle.goto(-50,0)
turtle.fillcolor("red")
turtle.begin_fill()
turtle.pendown()
turtle.circle(20)
turtle.end_fill()
turtle.goto(50,0)
turtle.fillcolor("red")
turtle.begin_fill()
turtle.pendown()
turtle.circle(20)
turtle.end_fill()
turtle.done()
\ No newline at end of file
y=input("元数:")
d=input("单价:")
s=input("数量:")
if y>=d*s:
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(-100,-100)
turtle.pencolor("black")
turtle.pensize(3)
turtle.hideturtle()
turtle.setheading(90)
turtle.pendown()
turtle.forward(200)
turtle.setheading(0)
turtle.forward(200)
turtle.setheading(-90)
turtle.forward(200)
turtle.setheading(-180)
turtle.forward(200)
turtle.penup()
turtle.goto(0.0)
turtle.fillcolor("blue")
turtle.begin_fill()
turtle.pendown()
turtle.circle(100)
turtle.end_fill()
turtle.done()
\ No newline at end of file
import turtle
turtle.goto(0,0)
turtle.pencolor("black")
turtle.pensize(10)
turtle.hideturtle()
turtle.fillcolor("blue")
turtle.pendown()
turtle.begin_fill()
turtle.circle(50)
turtle.penup()
turtle.end_fill()
turtle.goto(-90,0)
turtle.pendown()
turtle.forward(180)
turtle.left(120)
turtle.forward(180)
turtle.left(120)
turtle.forward(180)
turtle.penup()
turtle.goto(0,150)
turtle.pendown()
turtle.setheading(-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