Commit 51f495b4 by BellCodeEditor

save project

parent dcf9be79
Showing with 27 additions and 3 deletions
print("水仙花数有:")
for i in range(100,1000):
a=i//100
b=(i-a*100)//10
c=i%10
if a*a*a+b*b*b+c*c*c == i :
print(i,end=" ")
\ No newline at end of file
import turtle
pen = turtle.Pen()
pen.shape("turtle")
for i in range(3):
pen.left(90)
pen.forward(50)
pen.right(90)
pen.forward(50)
pen.right(90)
pen.forward(50)
if i <2:
pen.left(90)
pen.forward(50)
pen.hideturtle()
turtle.done()
\ No newline at end of file
neme=input("你叫什么名字啊?")
print(neme+",你好啊")
\ No newline at end of file
name = input("你叫什么名字?")
print("你好,"+name)
\ 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