Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
ca97e9c8
authored
Dec 03, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b832e123
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
21 deletions
func.py
gfgvggggggggggg.py
hjjutfhtyjutryyjyjy.py
l.py
func.py
View file @
ca97e9c8
str
=
[
"a"
,
"b"
,
"c"
,
"d"
,
"a"
]
for
i
in
range
(
1
,
len
(
str1
)):
print
(
str
[
i
])
for
i
in
str1
:
print
(
i
,
end
=
" "
)
import
random
age
=
random
.
randint
(
1
,
10
)
print
dict2
=
{
"age"
:
10
,
"age1"
:
20
,
"age2"
:
30
,
"age3"
:
40
}
dict2
[
"age1"
]
=
20
print
(
dict2
)
if
"age1"
in
dict
:
print
(
dict
[
"age1"
])
with
open
(
"r:
\\
Users
\\
Administrator
\\
Desktop
\\
test.txt"
,
'r'
,
encoding
=
'utf-8'
)
as
file1
:
ror
data
in
file1
:
if
'xiaoqiang:10ben'
in
data
:
print
(
'数据在文件中'
)
...
...
gfgvggggggggggg.py
0 → 100644
View file @
ca97e9c8
class
Hero
:
def
__init__
(
self
):
self
.
level
=
1
self
.
hp
=
300
self
.
attack
=
20
yase
=
Hero
()
print
(
yase
.
hp
)
hjjutfhtyjutryyjyjy.py
0 → 100644
View file @
ca97e9c8
for
i
in
range
(
3
):
print
(
i
)
\ No newline at end of file
l.py
View file @
ca97e9c8
import
pygame
pygame
,
init
()
from
pygame
import
locals
pygame
.
init
()
screen
=
pygame
.
display
,
set_mode
((
660
,
480
))
while
True
:
for
event
in
pygame
,
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
exit
()
screen
.
blit
(
backgound
,(
0
,
0
))
screen
.
blit
(
right
,(
290
,
120
))
screen
.
blit
(
foog
,(
360
,
300
))
\ 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