Last active
September 12, 2020 16:38
-
-
Save chiaoyaaaaa/e0da5e9aa0e2aa24b97a6da62e08eb00 to your computer and use it in GitHub Desktop.
clean comment_nums list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 把'則留言'和','去掉 | |
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