Commit 34b70af0 by BellCodeEditor

save project

parent 2d5235ee
a=9
aa=a*10+9
aaa=aa*10+9
aaaa=aaa*10+9
print(a+aa+aaa+aaaa)
\ No newline at end of file
i=10 i=3
username = "python" username = "ppoo"
userpassword = "123456" userpassword = "123456"
while True: while True:
if i>0: if i>0:
......
i=10
username = "python"
userpassword = "123456"
while True:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
if name != username and password == userpassword:
print("用户名错误")
print("提示:你还有"+str(i)+"次数")
continue
if name == username and password != userpassword:
print("密码错误")
print("提示:你还有" + str(i) + "次数")
continue
else:
print("次数已用完,请拿证件解琐")
exit()
print("欢迎来到贝尔编程!")
\ No newline at end of file
str=input()
a=0
s=0
for i in str
if i.isupper():
a+=1
else i.islower():
s+=1
print(a,s)
\ No newline at end of file
import turtle
pen=turtle.Pen()
turtle.screensize(0,0."yellow")
for i in range(10):
pen.forward(50)
pen.right(36)
pen.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
for i in range(10):
for i in range(4):
pen.forward(10)
pen.right(90)
pen.right(330)
pen.hideturtle()
turtle.done()
\ No newline at end of file
import turtle import turtle
pen = turtle.pen() pen=turtle.Pen()
distance=1 for i in range(1,1000):
for i in range(400): pen.forward(i)
pen.forward(distance) pen.right(91)
distance+=1
pen.right(121)
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done():
\ No newline at end of file \ No newline at end of file
input("写一段话")
input("写一段话")
a=0
s=0
d=0
f=0
g=
for i in range(g):
if i.sdigit():
a += 1
else i.isalpha():
s+=1
else i.isspace():
d+=1
elif:
f+=1
\ No newline at end of file
import turtle
import turtle
pen=turtle.Pen()
turtle.speed(0.0001)
for i in range(1000):
for i in range(4):
pen.forward(206)
pen.right(90)
pen.right(0.36)
pen.hideturtle()
turtle.done()
\ 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