Commit 4c9a9127 by BellCodeEditor

save project

parent 4d572b27
j = 5
i = 7
print(j, '*', i,'=', (j * i))
\ No newline at end of file
i = 5 # 行
j = 3 # 列
print(j,"*",i,"=",(j*i))# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
alist = [88,75,72,82,90,85,78,91]
m = len(alist)
for i in range (0,n-1):
for j in range (0,n-1):
if alist[j] < alist[n+2]:
alist[j] < alist[n-1]=alist[j+1],alist[j]
print(alist)
\ No newline at end of file
def peach(n):
if n == 10 :
return 1
num = (peach(n+1)n+1)*2
return num
peach_num = peach(6)
print(peach_num)
\ No newline at end of file
def peach(n):
if n == 10:
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
colors=("green","red","orange","yellow")
for i in range(300):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
pen.hideturtle()
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