Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_4
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
38335b0d
authored
Jul 02, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
1bc28a30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
15 deletions
12.py
123.py
1234.py
diy4.py
12.py
0 → 100644
View file @
38335b0d
import
turtle
pen
=
turtle
.
Pen
()
pen
.
goto
(
250
,
250
)
pen
.
speed
(
0
)
for
i
in
range
(
-
500
,
500
):
pen
.
forward
(
i
)
pen
.
left
(
99
)
turtle
.
done
123.py
0 → 100644
View file @
38335b0d
dict_hero
=
{
"猴3"
:
10
,
"猴1"
:
21
,
"猴5"
:
22
,
"猴队长"
:
29
,
"猴7"
:
30
}
dict_hero
[
"猴7"
]
=
32
a
=
dict_hero
[
"猴队长"
]
dict_hero
[
"猴10"
]
=
25
print
(
a
)
print
(
dict_hero
)
\ No newline at end of file
1234.py
0 → 100644
View file @
38335b0d
A
=
{
"可口可乐"
:
3
,
"旺仔牛奶"
:
4
,
"农夫山泉"
:
1
,
"辣条"
:
3
,
"巴西烤肉"
:
2
,
"果冻"
:
4
,
"乐事"
:
5
,
"奥利奥"
:
10
,
"巧克力"
:
6
,}
a
=
input
(
"你要买什么?"
)
if
a
in
A
:
print
(
"你买了"
+
a
+
"用了"
+
str
(
A
[
a
])
+
"元"
)
if
A
[
a
]
>=
3
:
print
(
"你真浪费"
)
else
:
print
(
"没有,滚蛋。瞅啥瞅?"
)
diy4.py
View file @
38335b0d
import
random
import
random
for
i
in
range
(
1000
):
# 私钥
a
=
random
.
randint
(
0
,
9
)
key
=
"u和我hi和共和党和芙蓉防护几点回家符号互动和符号DHL和任何你今年多大的版本感染了"
b
=
random
.
randint
(
0
,
9
)
# 要加密语句
c
=
random
.
randint
(
0
,
9
)
message
=
"诺依,周末一起去看动漫展吧!"
d
=
random
.
randint
(
0
,
9
)
e
=
""
e
=
random
.
randint
(
0
,
9
)
# 请使用私钥key,对message进行加密
f
=
random
.
randint
(
0
,
9
)
for
i
in
range
(
len
(
message
)):
j
=
random
.
randint
(
0
,
9
)
a
=
message
[
i
]
h
=
random
.
randint
(
0
,
9
)
b
=
random
.
choice
(
key
)
r
=
random
.
randint
(
0
,
9
)
c
=
random
.
choice
(
key
)
print
(
str
(
a
)
+
str
(
b
)
+
str
(
c
)
+
str
(
d
)
+
str
(
e
)
+
str
(
f
)
+
str
(
j
)
+
str
(
h
)
+
str
(
r
))
d
=
a
+
b
+
c
e
=
e
+
d
print
(
e
)
\ 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