Commit d7c4ea28 by BellCodeEditor

auto save

parent 024fb164
Showing with 60 additions and 9 deletions
a=[1,3,5,7]
n=0
sum=0
for x in a:
for y in a:
for z in a:
if x!=y and x!=z and y!=z:
print(x,y,z,sep="")
n+=1
sum+=x*100+y*10+z
print(n)
print(sum)
\ No newline at end of file
import turtle
turtle.circle(100)
turtle.circle(100,steps=5)
turtle.done()
\ No newline at end of file
import turtle
import time
turtle.bgcolor("red")
turtle.color("yellow")
turtle.begin_fill()
for i in range(5):
turtle.forward(200)
turtle.left(144)
turtle.end_fill()
turtle.left(90)
turtle.forward(100)
time.sleep(5)
turtle.reset()
turtle.done()
\ No newline at end of file
import turtle
t=turtle.Pen()
ty=turtle.Pen()
t.pencolor("red")
ty.color("yellow")
t.left(90)
t.forward(100)
ty.forward(100)
turtle.done()
\ No newline at end of file
a=int(input("输入年龄:"))
sg=a*5+75
tz=a*2+8
print("标准身高:",sg,"厘米")
print("标准体重:",tz,"公斤")
\ No newline at end of file
total = [] def cj():
while True: total = []
unit= input("请输入:") while True:
if unit== 'q': unit= input("请输入:")
break if unit== 'q':
else: break
total.append(unit) else:
print(total) total.append(unit)
\ No newline at end of file print(total)
cj()
\ 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