Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_3
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
0cc668b1
authored
Jan 06, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
25579418
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
2 deletions
1.py
adw.py
fgh.py
朱傻逼.py
1.py
0 → 100644
View file @
0cc668b1
list
=
[
"苹果"
,
"香蕉"
,
"西瓜"
,
"土豆"
,
"山竹"
,
"葡萄"
]
a
=
list
[
2
]
print
(
a
)
list
[
1
]
=
"鸭梨"
print
(
list
)
list
.
pop
(
3
)
print
(
list
)
list
.
insert
(
3
,
"榴莲"
)
print
(
list
)
i
=
0
while
i
<
len
(
list
):
if
list
[
i
]
==
"葡萄"
:
print
(
i
)
i
=
i
+
1
adw.py
View file @
0cc668b1
p
=
"结婚后即可好看好看就不能见客户就看会尽快缓解你不会尽快"
import
random
print
(
list
(
p
))
a
=
0
b
=
0
c
=
0
for
i
in
range
(
3000
):
x
=
random
.
randint
(
8
,
10
)
if
x
==
8
:
a
+=
1
elif
x
==
9
:
b
+=
1
else
:
c
+=
1
print
(
a
,
b
,
c
)
\ No newline at end of file
fgh.py
0 → 100644
View file @
0cc668b1
# direction="down"
# while True:
# if iskeydown("right"):
# direction="right"
# if direction=="right":
# changex(5)
# a=["赵","26","司","0","张","12"]
# c={"赵":26,"司":0,"张":12}
# print(len(a))
# print(len(c))
朱傻逼.py
0 → 100644
View file @
0cc668b1
list
=
[
"苹果"
,
"香蕉"
,
"西瓜"
,
"土豆"
,
"山竹"
,
"葡萄"
]
list
=
[
"苹果"
,
"香蕉"
,
"西瓜"
,
"土豆"
,
"山竹"
,
"葡萄"
]
a
=
list
[
2
]
print
(
a
)
list
[
1
]
=
"鸭梨"
print
(
list
)
list
.
pop
(
5
)
print
(
list
)
list
.
insert
(
2
,
"榴莲"
)
print
(
list
)
# while list:
# list[5]
# print(list)
\ 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