Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1596b8cb
authored
Nov 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d4827e2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
342 additions
and
15 deletions
diy1.py
fcvdfd.py
freetegt
diy1.py
View file @
1596b8cb
username
=
"phtyon"
# username="phtyon"
userpassword
=
"123456"
# userpassword="123456"
while
True
:
# while True:
name
=
input
(
"请输入账号:"
)
# name = input("请输入账号:")
password
=
input
(
"请输入密码:"
)
# password = input("请输入密码:")
if
name
==
username
and
uesrpassword
==
password
:
# if name == username and uesrpassword == password:
print
(
"登录成功"
)
# print("登录成功")
break
# break
if
name
!=
username
:
# if name!=username:
print
(
"用户名错误,请重新输入"
)
# print("用户名错误,请重新输入")
if
password
!=
userpassword
:
# if password!=userpassword :
print
(
"用户密码错误,请重新输入"
)
# print("用户密码错误,请重新输入")
print
(
"登录失败"
)
# print("登录失败")
print
(
"欢迎来到贝尔编程"
)
# print("欢迎来到贝尔编程")
\ No newline at end of file
# a=input("")
# b=""
# l=num=len(a)
# for i in range(l):
# num=num-1
# b=b+a[num]
# print(b)
n
,
m
=
input
()
.
split
(
","
)
n
=
int
(
n
)
m
=
int
(
m
)
for
i
in
range
(
2
,
n
+
1
):
while
n
%
10
==
0
and
m
%
10
==
0
:
n
=
n
//
10
m
=
m
//
10
print
(
str
(
n
)
+
"/"
+
str
(
m
))
\ No newline at end of file
fcvdfd.py
0 → 100644
View file @
1596b8cb
#sum = 0
#y = 0
#a = [1,3,5,7]
#for i in a:
# for j in a:
# for k in a:
# if i != j and j!= k and i != k:
# u = i * 100 + j * 10 + k
# y = y + u
# print(u)
# sum = sum + 1
#print(y)
#print(sum)
a
=
int
freetegt
0 → 100644
View file @
1596b8cb
pen=turtle.()
for i in range(3):
pen.forward(200)
pen.right(144)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment