Commit 2a431b9b by BellCodeEditor

auto save

parent 5cf17bf9
Pipeline #10961 failed in 0 seconds
Showing with 76 additions and 14 deletions
students = ["悟空", "小贝", "八戒", "波奇"]
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除
students.pop(2)
print(students)
# 班上来了一个新同学,名叫"诺依n",请将"诺依"加入到班级名单里面
students.extend(["诺依"])
print(students)
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
red = students[0:2]
blue = students[2:4]
print(red)
print(blue)
# import turtle
# screen=turtle.Screen()
# screen.bgcolor("blue")
#pen=turtle.Pen()
#pen.penup()
#pen.goto(100,-100)
#pen.pendown()
#pen.write("春晓\n春眠不觉晓\n处处闻啼鸟\n夜来风雨声\n花落知多少",font=("Times",20,"normal"))
#pen.hideturtle()
# pen1=turtle.Pen()
# pen1.pensize(5)
# pen1.pencolor("red")
# len=screen.textinput("提示","你需要多大的爱心?")
# lovesize=int(len)
# pen1.left(45)
# pen1.forward(2*lovesize)
# pen1.circle(lovesize,180)
# pen1.right(90)
# pen1.circle(lovesize,180)
# pen1.forward(2*lovesize)
# pen1.hideturtle()
# turtle.done()
username = "qwe"
userpassword = 123456
while True:
c = input("请输入账号:")
d = input("请输入密码:")
if username==c and userpassword==d:
print("登陆成功")
break
if username !=c:
print("账号错误")
continue
if userpassword !=d:
print("密码错误")
print("欢迎来到贝尔编程")
\ No newline at end of file
# username = "qwe"
# userpassword = 123456
# while True:
# if i = 3:
# c = input("请输入账号:")
# d = input("请输入密码:")
# i-=1
# if username==c and userpassword==d:
# print("登陆成功")
# break
# if username !=c: str
# print("账号错误")
# print("你还有"+str(i)+"次机会")
# continue
# if userpassword !=d:
# print("密码错误")
# print("你还有"+str(i)+"次机会")
# else:
# print("输入错误,机会已用完,请带身份证来我司解锁")
# exit()
# print("欢迎来到贝尔编程")
# import turtle
# pen=turtle.Pen()
# screen=turtle.Screen()
# colrs=["red","orange","yellow","green"]
# for i in range(1,300):
# screen.colr(black)
# pen.colrs(i%4)
# pen.forward(i)
# pen.right(91)
# i+=1
# pen.hideturtle()
# turtle.done()
j=1
i=1
print(j,'*',i,'=',(j*i))
\ 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