Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
89f03c60
authored
Apr 02, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
05e0d4e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
1.py
func.py
1.py
0 → 100644
View file @
89f03c60
with
open
(
r'C:\Users\Lenovo\Desktop\book.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
file1
:
for
data
in
file1
:
if
'小美:10本'
in
data
:
print
(
'小美数据在文件中'
)
if
'小白:21本'
in
data
:
print
(
'小白数据在文件中'
)
\ No newline at end of file
func.py
View file @
89f03c60
...
@@ -14,4 +14,4 @@ def new_input():
...
@@ -14,4 +14,4 @@ def new_input():
print
(
"-"
*
30
)
print
(
"-"
*
30
)
return
total
return
total
result
=
new_input
()
result
=
new_input
()
print
(
total
)
print
(
total
)
s
\ No newline at end of file
\ 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