Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_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
013d3e77
authored
Feb 26, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
148c9e1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
3 deletions
3.py
3py
4.py
3.py
View file @
013d3e77
...
...
@@ -4,3 +4,6 @@ print(list(a))
c
=
list
(
a
)
b
=
''
.
join
(
c
)
print
(
len
(
b
))
str1
=
"本节课我们学习文字加密"
str2
=
"用python进行"
print
(
str1
[:
7
]
+
str2
+
str1
[
7
:])
\ No newline at end of file
3py
View file @
013d3e77
a="python"
print(list(a))
\ No newline at end of file
count =0
while True:
print("count的值为:"+str(count))
if count ==5:
4.py
View file @
013d3e77
count
=
0
while
True
:
count
+=
1
if
count
==
5
:
continue
if
count
==
10
:
break
print
(
"count的值为:"
+
str
(
count
))
import
random
a
=
0
b
=
0
c
=
0
for
i
in
range
(
3000
):
x
=
random
.
randint
(
8
,
10
)
if
x
==
8
:
a
+=
1
if
x
==
9
:
b
+=
1
if
x
==
10
:
c
+=
1
print
(
a
,
b
,
c
)
a
=
{
'第一格'
:
'猪八戒'
}
a
[
'第一格'
]
=
'唐三藏'
a
[
'第二格'
]
=
'假行者'
a
[
'第三格'
]
=
'沙和尚'
a
[
'第四格'
]
=
'猪八戒'
print
(
a
)
print
(
a
[
'第四格'
])
dict
=
{
'name'
;
'小明'
}
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