Skip to content

Commit

Permalink
参考
Browse files Browse the repository at this point in the history
  • Loading branch information
testacount1 committed May 10, 2020
1 parent bae53b0 commit 55b8afc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 2.1-topic:数据处理/读写文本/提取.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 参考: https://stackoverflow.com/questions/35685518/python-write-line-by-line-to-a-text-file
# https://stackoverflow.com/questions/3277503/how-to-read-a-file-line-by-line-into-a-list
# https://www.geeksforgeeks.org/reading-writing-text-files-python/

with open('三国志 copy.txt') as f:
所有行 = f.readlines()

Expand Down

0 comments on commit 55b8afc

Please sign in to comment.