Commit 5269636e by BellCodeEditor

save project

parent 23b593cc
A="54188"
B="SBBBBBBBB"
C=input("请输入用户名:")
D=input("请输入密码:")
if A==C and B==D:
print("赶紧滚进去")
else:
print("你妈的滚出去")
\ No newline at end of file
a=eval(input("请输入语文成绩"))
b=eval(input("请输入数学成绩"))
c=eval(input("请输入英语成绩"))
s=a+b+c
d=s/3
print(f"你的总分为{s},你的平均分为{d}分")
\ No newline at end of file
a=int(input("请输入正方形的边长"))
b=a*4
c=a*a
print(f"正方形的周长{b},正方形的面积{c}")
\ No newline at end of file
a=eval(input("请输入压岁钱"))
b=23
c=a//b
d=a-b*c
print(f"可以购买{c}本书,剩余{d}元")
\ No newline at end of file
import turtle as t
t.up()
t.goto(0,-50)
t.down()
t.circle(50)
t.left(90)
t.forward(100)
t.right(180)
t.forward(50)
t.right(90)
t.forward(50)
t.forward(-100)
t.hideturtle()
t.done()
\ No newline at end of file
import turtle as t
t.up()
t.goto(-50,100)
t.down()
t.pensize(20)
t.pencolor("red")
t.forward(200)
t.right(135)
t.pencolor("green")
t.forward(280)
t.pencolor("blue")
t.left(135)
t.forward(200)
t.hideturtle()
t.done()
\ No newline at end of file
import turtle as t
t.pensize(5)
t.pencolor("red")
t.fillcolor("yellow")
t.begin_fill()
t.forward(200)
t.right(144)
t.forward(200)
t.right(144)
t.forward(200)
t.right(144)
t.forward(200)
t.right(144)
t.forward(200)
t.end_fill()
t.hideturtle()
t.done()
\ No newline at end of file
...@@ -12,7 +12,7 @@ colors=["white","blue","violet","cyan"] ...@@ -12,7 +12,7 @@ colors=["white","blue","violet","cyan"]
# 请创造师在下面接着创作 # 请创造师在下面接着创作
distance=1 distance=1
pen.speed(1000) pen.speed(1000)
for i in range(1,300): for i in range(1,100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
pen.pencolor(colors[i%4]) pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
pen.right(91) pen.right(91)
......
for i in range(1,10):
for j in range(1,i+1):
print("*",end=" ")
print()
\ No newline at end of file
cprint(f"你的总分为:{sum}分,平均分为:{avg}分")
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