Skip to content

Commit

Permalink
大一小学期 (PKUanonym#35)
Browse files Browse the repository at this point in the history
不明觉厉
  • Loading branch information
lwpie authored and PKUanonym committed Sep 11, 2019
1 parent 44b6e60 commit efe266a
Show file tree
Hide file tree
Showing 250 changed files with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions 大一小学期/Week_3-Python/exam/2019/2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

from html_table_parser import HTMLTableParser

with open('origin.html', 'r', encoding='utf-8') as f:
text = f.read()

p = HTMLTableParser()
p.feed(text)
if __name__ == '__main__':
with open('origin.html', 'r', encoding='utf-8') as f:
text = f.read()

if True:
# if __name__ == '__main__':
p = HTMLTableParser()
p.feed(text)

# task 1
tables = p.tables
Expand Down

0 comments on commit efe266a

Please sign in to comment.