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
14b5b811
authored
Jun 12, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
370cf254
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
9 deletions
diy1.py
diy1.py
View file @
14b5b811
username
=
"python"
# 保存在服务器数据库中的用户账号(正确的账号)
# N=int(input("输入一个正整数N:"))
userpassword
=
"123456"
# 保存在服务器数据库中的用户密码(正确的密码)
# for i in range(1,N+1):
# if i%3==0 and i%7==0:
# 请用input()实现用户输入账号、密码的功能
# print(i)
# N=int(input("输入一个正整数N:"))
# for i in range(1,N+1):
# if i%21==0:
# 如果用户输入的账号、密码正确,提示登陆成功
# print(i)
\ No newline at end of file
ch
=
int
(
input
(
"输入语文成绩:"
))
math
=
int
(
input
(
"输入数学成绩"
))
en
=
int
(
input
(
"输入英语成绩"
))
if
ch
+
math
+
en
>
285
:
print
(
"去游乐园"
)
elif
ch
+
math
+
en
>
241
:
print
(
"做一天作业"
)
else
:
print
(
"做两天作业"
)
# while True:
# a=int(input("输入第一个整数:"))
# b=int(input("输入第二个整数:"))
# if a%b==1:
# print("恭喜")
# elif a/b==3:
# ("发财")
# else:
# printa+b>c(a/b)
# while True:
# a=int(input("输入三角形的第一条边:"))
# b=int(input("输入三角形的第二条边:"))
# c=int(input("输入三角形的第三条边:"))
# if a+b>c and a+c>b and c+b>a:
# print("能")
# else:
# print("不能")
# print(" "*5,"*"*1)
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