daily problems 统计word出现频率 在markdown中修改图片大小 TODO List

1
2
3
4
from itertools import chain
a = [[1,2],[3,4]]
a_ = list(chain(*a))
print(a_)

结果

1
[1,2,3,4]

参考:

https://blog.csdn.net/mengmengz07/article/details/70226323

统计word出现频率

1
2
3
4
5
6
from collections import Counter
words = [...]
words_counter = Counter(words)
words_dic = dict(Counter.most_common(len(words_counter)))
for word, freq in words_dic.items():
print(word, freq)

在markdown中修改图片大小

1
<img src="unified.jpeg" style="height:400px"  align=center />

参考 https://www.zhihu.com/question/23378396

TODO List