Commit c71822f1 by BellCodeEditor

save project

parent 024fb164
Showing with 30 additions and 9 deletions
n=int(input())
print(n*9)
\ No newline at end of file
import random
def tree(n):
if n>=0:
pen.forward(n)
pen.right(30)
tree(n-10)
pen.left(60)
tree(n-10)
pen.right(30)
pen.up()
pen.backward(n)
pen.down()
pen = turtle.Turtle()
pen.color('sienna')
w = turtle.Screen()
w.bgcolor('wheat')
pen.left(90)
pen.up()
pen.backward(150)
pen.down()
tree(60)
turtle.done()
\ No newline at end of file
s=input()
a=(20-len(s))//2
print(a*"*"+s+a*"*")
\ No newline at end of file
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ 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