Commit f3b1ac1c by BellCodeEditor

auto save

parent f8a0bc5e
Showing with 52 additions and 10 deletions
import turtle
turtle.penup()
turtle.color("red")
turtle.begin_fill()
turtle.goto(-200,0)
turtle.pendown()
for i in range(3):
turtle.forward(100)
turtle.right(120)
turtle.end_fill()
turtle.right(60)
turtle.forward(100)
turtle.right(120)
turtle.forward(-150)
turtle.penup()
turtle.color("blue")
turtle.begin_fill()
turtle.pendown()
turtle.circle(-60,360,4)
turtle.end_fill()
turtle.forward(-150)
turtle.penup()
turtle.color("green")
turtle.begin_fill()
turtle.pendown()
turtle.circle(-60,360,5)
turtle.end_fill()
turtle.forward(-150)
turtle.circle(-60)
turtle.done()
turtle.done()
\ No newline at end of file
username = "python"
userpassword = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程!")
\ 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()
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