Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최재웅
/
menu_recommand_webpage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Jaeung Choi
2022-06-07 19:52:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
13e8c64c4ce9a163731ded2d0ccd68ae9e9d7160
13e8c64c
1 parent
c9dcecb2
fileread practice
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
fileread_practice.py
fileread_practice.py
0 → 100644
View file @
13e8c64
f1
=
open
(
"C:
\\
Users
\\
menu_recommand_webpage
\\
ect.txt"
,
"r"
,
encoding
=
"utf-8"
)
f2
=
open
(
"C:
\\
Users
\\
menu_recommand_webpage
\\
water.txt"
,
"r"
,
encoding
=
"utf-8"
)
list_compare
=
list
()
list1
=
[]
for
i
in
list
(
f1
):
list1
.
append
(
i
)
list2
=
[]
for
i
in
list
(
f2
):
list2
.
append
(
i
)
for
i
in
list1
:
if
i
in
list2
:
list_compare
.
append
(
i
)
list_compare_fixed
=
[
item
.
strip
()
for
item
in
list_compare
]
print
(
list_compare_fixed
)
f1
.
close
()
f2
.
close
()
Please
register
or
login
to post a comment