This website requires JavaScript.
Explore
Help
Sign In
zhangyuqing
/
pythonbook
Watch
1
Star
0
Fork
You've already forked pythonbook
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
master
pythonbook
/
10个编程技巧
/
with 语句.py
5 lines
104 B
Python
Raw
Permalink
Blame
History
#自动关闭文件
with
open
(
'
mytest.txt
'
)
as
file_in
:
for
line
in
file_in
:
print
(
line
)
Reference in New Issue
View Git Blame
Copy Permalink