Python 随手记 print(ord('朱')) #26417print(chr(26417)) #朱print(eval('3+4')) #7阅读全文 Python 2022-04-17 评论 308 次浏览
有意思的包 词云cut_list=jieba.lcut(str)new_str=' '.join(cut_list)word_cloud=WordCloud(font_path='msyh.ttf').generate(new_str)word_cloud.to_file('test.png') Python 2022-04-16 评论 284 次浏览
pip install出现错误 pip install出现错误:Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools转至如下网站下载whlhttps://www.lfd.uci.edu/~gohlke/pythonlibs/ Python 2022-04-16 评论 276 次浏览
Python File open() 方法用于打开一个文件,并返回文件对象,在对文件进行处理过程都需要使用到这个函数,如果该文件无法被打开,会抛出 OSError。注意:使用 open() 方法一定要保证关闭文件对象,即调用 close() 方法。尽量使用 with方式打开阅读全文 Python 2022-04-16 评论 325 次浏览