Skip to content

Instantly share code, notes, and snippets.

@chiaoyaaaaa
Last active September 12, 2020 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chiaoyaaaaa/e0da5e9aa0e2aa24b97a6da62e08eb00 to your computer and use it in GitHub Desktop.
Save chiaoyaaaaa/e0da5e9aa0e2aa24b97a6da62e08eb00 to your computer and use it in GitHub Desktop.
clean comment_nums list
# 把'則留言'和','去掉
for i in range(len(comment_nums)):
index = comment_nums[i].find('則')
comment_nums[i] = int(comment_nums[i][:index].replace(',',''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment