Commit ec9ffe9f by BellCodeEditor

save project

parent c624409c
Showing with 57 additions and 3 deletions
i = 5 # 行
j = 3 # 列
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
import random
a="傻子,出去玩吗"
b=input()
c=list(a)
print(c)
d=random.randint(0,len(a))
print(d)
c.insert(d,b)
print(c)
e="".join(c)
print(e)
'''
rsdtrdfrtf
'''
a=6 #dscs
b=3 #dlsd
s=a*b #fdsz
print("长方形的面积为",s)
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.penup()
turtle.goto(0,0)
turtle.pendown()
turtle.dot(20,"red")
turtle.penup()
turtle.goto(-40,0)
turtle.dot(20,"red")
turtle.penup()
turtle.goto(40,0)
turtle.dot(20,"red")
turtle.hideturtle()
turtle.done()
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