Commit 4cfa5917 by BellCodeEditor

auto save

parent d5fd118c
Showing with 32 additions and 0 deletions
for i in range(1,10):
for j in range(1,i+1):
print(i,"*",j,"=",i*j,end=" ")
print()
\ No newline at end of file
sg=eval(input("请输入身高:"))
tz=eval(input("请输入体重:"))
print(tz/sg**2)
import turtle
p=turtle.Pen()
c=["red","yellow","blue","green"]
s=turtle.Screen()
s=s.bgcolor("black")
for i in range(300):
p.pencolor(c[i%4])
p.forward(i)
p.left(91)
p.hideturtle()
turtle.done()
\ No newline at end of file
for i in range(1,10):
for j in range(1,i+1):
print(i,"*",j,"=",i*j,end="")
print()
\ No newline at end of file
rw=["刘备","关羽","张飞",'猪','猪']
rw=["刘备","关羽","张飞",'猪','猪']
for i in range(len(rw)):
rw.remove('猪')
print(rw)
\ 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