![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
梦之马
一入代码深似海,从此不做岸上人
展开
-
萌新试玩python的踩坑史
python学习教程请看python快速教程 快速脱坑请看本博客 1 逻辑变量 True False 开头大写(和java不一样) 2 if用法错误纠正(正确使用缩进)>>> i=1;>>> x=2;>>> if i>0:... x=x+2; File "<stdin>", line 2 x=x+2; ^IndentationError: exp原创 2017-02-12 16:09:25 · 528 阅读 · 0 评论 -
ImportError: The _imagingft C module is not installed
The _imagingft C module is not installed原创 2017-07-16 21:47:11 · 427 阅读 · 0 评论 -
vi 设置编码格式
参考链接: https://www.cnblogs.com/xkfz007/archive/2011/11/17/2252019.html https://www.douban.com/note/164292515/ 我在用vi 编辑python的时候,注释行不识别中文,大概是/x67之类的样子,然后查看文件编码方式file *.py显示:*.py: ASCII Java pr原创 2018-01-15 10:13:01 · 12731 阅读 · 0 评论 -
Python错误解决 TypeError: first arg must be callable
在写定时任务的时候遇到了这样的错误import scheduleimport timedef job(): print("start job") print("hello")schedule.every().day.at("13:01").do(job())while True: schedule.run_pending() time.slee...原创 2018-02-08 14:51:47 · 23973 阅读 · 7 评论 -
python3 发送qq邮件带图片
# -*- coding: utf-8 -*-import smtplibfrom email.mime.multipart import MIMEMultipartfrom email.mime.text import MIMETextfrom email.mime.image import MIMEImagedef send(): sender = '***@qq.com'...原创 2018-02-08 15:08:40 · 4408 阅读 · 0 评论 -
pytesseract.pytesseract.TesseractError
pytesseract.pytesseract.TesseractError: (1, 'Error opening data file /usr/local/Cellar/tesseract/3.05.01/share/tessdata/chi_sim.traineddata Please make sure the TESSDATA_PREFIX environment variable i...原创 2018-02-28 15:51:26 · 12878 阅读 · 0 评论