技术坑/环境坑
qq_24726703
这个作者很懒,什么都没留下…
展开
-
错误解决syntax error, unexpected ‘“leg“‘ (T_CONSTANT_ENCAPSED_STRING), expecting ‘]‘
多种可能:缺少反括号. 正括号之后又不符合格式的空白, tab之类的. 清除多余的空白内容,这个错误很隐藏, 找了2天才找到了! 查看当前代码的编码格式. 可能有其他编码的内容.原创 2021-07-13 11:03:08 · 1994 阅读 · 0 评论 -
chrome扩展开发示例 无法加载以下来源的扩展程序 Invalid value for 'content_scripts[1].matches[0]': Empty path.
解决:注意,域名后面要一个反斜杠测试发现这2个都不行 无法加载// “matches”: [“http://detail.com”],// “matches”: [“http://www.baidu.com*”],只有这个可以// “matches”: [“http://www.baidu.com/*”],...原创 2019-12-25 10:23:01 · 4123 阅读 · 0 评论 -
安装Python2.7 的 PIL包 pip install PIL失败解决
windows安装Python2.7 的 PIL包pip install PIL 换成pip install Pillow 会成功,否则会失败 提示PS E:\pyproject> pip install PILDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upg...原创 2019-05-19 22:33:55 · 2107 阅读 · 0 评论 -
大坑啊 python matplotlibrc 在win10画图标签中文label显示乱码解决/ win10 python 画图中文label显示乱码问题解决 19-7-9搞了一天终于解决
解决:import matplotlib.font_manager as fm# myfont = fm.FontProperties(fname='C:/Windows/Fonts/simsun.ttc')myfont = fm.FontProperties(fname='C:/Windows/Fonts/msyhbd.ttc')plt.xlabel(u'身高',fontproper...原创 2019-07-09 22:47:02 · 624 阅读 · 0 评论 -
python拼接字符串 中有的是整数时需要用str()进行转换才能进行拼接 TypeError: cannot concatenate 'str' and 'int' objects
f.write(strtime + '\t' + i + '\t' + titleYied + '\t' + urlyied + '\n') # ‘\n’ 表示换行TypeError: cannot concatenate 'str' and 'int' objects解决:python拼接字符串 中有的是整数时需要用str()进行转换才能进行拼接...原创 2019-07-10 22:06:40 · 424 阅读 · 0 评论