Commit 73c94c88 by BellCodeEditor

auto save

parent ef7dc539
Showing with 35 additions and 0 deletions
# py=['镒强','羽轩','宗乐','昕妤','振烨','建宸','家伟']
# print(py[::-1])
# a="Hello World"
# print(a[2:3])
# a="玛酷机器人少儿编程" #设置一个变量为“玛酷机器人少儿编程”
# print(a[1::5])
# print(a[1]+a[6])
# 建立列表a=[2,8,2,4,1,0,7,6],按顺序输出:
# 左起第4个元素与倒数第1个元素的和;
# 所有元素和;
# 最大的元素。
# 最小的元素。
# a=[2,8,2,4,1,0,7,6]
# print(a[3]+a[7])
# print(sum(a))
a=[5,2,10,1,2,9,3]
a.sort()
print(a)
\ No newline at end of file
import turtle
p = turtle.Pen()
p.pensize(3)
p.pencolor('gold')
n = 6
for j in range(5):
for i in range(n):
p.forward(100)
p.left(360/n)
p.left(360/5)
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