Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_2
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
7d8f0cf9
authored
Aug 22, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
4698e069
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
5 deletions
diy2.py
rtr.py
平方数.py
最小公倍数.py
diy2.py
View file @
7d8f0cf9
score
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
twenty
-
eight
=
[
"2"
]
thirty
=
[
"4"
,
"6"
,
"9"
,
"11"
]
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
thirty
-
one
=
[
"1"
,
"3"
,
"5"
,
"7"
,
"8"
,
"10"
,
"12"
]
input
(
y
and
m
)
if
(
y
\
4
)
>
0
:
import
(
"平年"
)
else
:
import
(
"闰年"
)
if
m
==
2
:
import
(
"有28天"
)
if
m
==
4
or
m
==
6
or
m
==
9
or
m
==
11
:
import
(
"有30天"
)
if
m
==
1
or
m
==
3
or
m
==
5
or
m
==
7
or
m
==
8
or
m
==
10
or
m
==
12
:
import
(
"有31天"
)
\ No newline at end of file
rtr.py
0 → 100644
View file @
7d8f0cf9
weather
=
{
"北京"
:
8
,
"上海"
:
15
,
"广州"
:
20
,
"4"
:
21
}
data
=
weather
.
pop
(
"北京"
)
print
(
data
)
print
(
weather
)
\ No newline at end of file
平方数.py
0 → 100644
View file @
7d8f0cf9
input
(
x
and
y
)
input
(
x
and
y
)
for
i
in
range
(
y
):
x
=
x
*
x
import
(
x
)
\ No newline at end of file
最小公倍数.py
0 → 100644
View file @
7d8f0cf9
input
(
x
and
z
)
input
(
x
and
z
)
while
True
:
if
x
>
z
:
x
=
x
-
(
x
-
z
)
if
x
=
z
:
import
(
"x"
)
break
()
z
=
z
-
(
z
-
x
)
if
x
=
z
:
import
(
"x"
)
break
()
x
=
x
-
(
x
-
z
)
if
x
=
z
:
import
(
"x"
)
break
()
z
=
z
-
(
z
-
x
)
if
x
=
z
:
import
(
"x"
)
break
()
x
=
x
-
(
x
-
z
)
if
x
=
z
:
import
(
"x"
)
break
()
z
=
z
-
(
z
-
x
)
if
x
=
z
:
import
(
"x"
)
break
()
\ 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