Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-1_DIY1
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
c608c32f
authored
Nov 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
2f0875c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
2 deletions
diy1.py
jijoicjwoijcoihj.py
噢噢噢噢哦哦哦.py
diy1.py
View file @
c608c32f
name
=
input
(
"小潮院长"
)
Chinese
=
input
(
"请输入语文成绩"
)
print
(
name
+
"好"
)
# 我们都爱夸夸夸
English
=
input
(
"请输入英语成绩"
)
Math
=
input
(
"请输入数学成绩"
)
score
=
(
Chinese
+
English
+
Math
)
if
:
if
:
(
score
<
180
)
else
:
print
(
"不及格"
)
if
:
(
score
>
180
and
score
<
240
)
else
:
print
(
"合格"
)
if
:
(
score
<
270
and
score
>
240
)
else
jijoicjwoijcoihj.py
0 → 100644
View file @
c608c32f
import
random
list
=
[
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
]
caipiao
=
random
.
sample
(
list
,
5
)
caipiao
=
''
.
join
(
caipiao
)
shuru
=
input
(
"输入号码"
)
if
caipiao
==
shuru
:
print
(
"奖金10000元"
)
else
:
i
=
0
for
s
in
shuru
:
for
c
in
caipiao
:
if
s
==
c
:
i
+=
1
print
(
"彩票号:"
+
caipiao
)
print
(
"奖金:"
+
str
(
i
*
34827424653658163487547581638715325328773268736572453245765326453249
)
+
"元"
)
\ No newline at end of file
噢噢噢噢哦哦哦.py
0 → 100644
View file @
c608c32f
math
=
float
(
inpot
(
"数学:"
))
math
=
float
(
inpot
(
"数学:"
))
chinese
=
float
(
inpot
(
"语文:"
))
english
=
float
(
inpot
(
"英语:"
))
score
=
math
+
english
+
chinese
print
(
score
)
if
score
>=
270
:
print
(
"牛逼"
)
elif
score
>=
240
:
print
(
"SB"
)
elif
score
>=
180
:
print
(
"合格"
)
else
:
print
(
"垃圾"
)
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