Commit da112b10 by BellCodeEditor

auto save

parent 682020b9
Showing with 46 additions and 3 deletions
import turtle
screen=turtle.Screen
pen=turtle.Pen()
pen.penup()
pen.goto(0,0)
pen.pendown()
for i in range(3):
pen.forward(100)
pen.left(120)
pen.penup()
pen.goto(20,-10)
pen.setheading(100)
pen.pendown()
pen.forward(150)
pen.fillcolor("olive")
turtle.done()
\ No newline at end of file
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
name=input("请输您的入账号")
password=input("请输您的入密码")
if name == username and password == userpassword:
print("登陆成功")
break
if name !=username:
print("账号错误")
continue
if password != userpassword:
print("密码错误")
print("欢迎登陆贝尔编程")
# 请用input()实现用户输入账号、密码的功能
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
a=input("长方宽:")
c=float(a)*2+2
z=(float(a)+c)
print("长方长:"+str(c))
print("长方周长:"+str(z))
m=(float(a)*c)
m=round(m,3)
print("长方面积为:"+str(m))
\ 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