- 博客(5)
- 收藏
- 关注
原创 关于爬取京东商品界面出现的passport
MOOC关于爬取京东商品界面的实例: import requests url = "https://item.jd.com/100002795959.html" try: r = requests.get(url) r.raise_for_status() r.encoding = r.apparent_encoding print(r.text[:1000]) e...
2020-05-05 13:58:18
5108
6
原创 关于使用QuartusII仿真时出现的错误
使用QuartusII仿真时出现No simulation input file assignment specified on simulator page of the settings dialog box的解决方法 没有建立仿真文件。file->new->Vector Waveform File添加一个文件,写入输入输出端口,设置输入信号,保存并Add file to cur...
2020-05-02 13:39:02
11301
1
原创 python中complex()函数的用法
python中complex()函数的用法 >>> complex(1) (1+0j) >>> complex("1") (1+0j) >>> complex(1+1j) (1+1j) >>> complex("1+1j") (1+1j) >>> complex(a) Traceback (most rece...
2020-04-16 16:44:20
7515
原创 关于文件和词云的python学习过程中出现的问题及解决方法
关于文件和词云的python学习过程中出现的问题及解决方法 使用open("<>",‘a’)创建一个新文本并写入语句,运行后文本被创建,但语句未成功写入。 解决:使用f.close()函数关闭文件 Python词云库wordcloud不显示中文。 解决:wordcloud.WordCloud(font_path=“C:/Windows/Fonts/<字体.ttf>”...
2020-04-09 17:12:32
839
原创 python引用中文文件时出现错误'utf-8' codec can't decode byte 0xc8 in position 0: invalid continuation byt
python引用中文文件时出现错误’utf-8’ codec can’t decode byte 0xc8 in position 0: invalid continuation byt 源代码: #CalThreeKingdomsV1.py import jieba txt = open("threekingdoms.txt", "r", encoding='utf-8').read() wor...
2020-04-07 17:06:06
6868
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅