而且出现了 Could not parse file contents, check if you have the necessary module installed! 这句话。
解决方案:
sudo apt-get install python3-markdown python3-docutils...
分类:
系统相关 时间:
2015-02-07 01:44:38
阅读次数:
316
Python3 读写文件碰到的编码问题 1,远程文件资源读取 response的为 bytes,即utf-8或者gbk,需解码decode为unicode如:[python] view plaincopy# coding=gbk import urllib.request import re url...
分类:
编程语言 时间:
2015-02-06 18:12:11
阅读次数:
154
Python由于是非商业的,所以版本更新上有很多不兼容,例如python3和python2中的除法:python2.x:10/3 = 3 ; 10.0/3 = 3.333333...而python3.x:10/3 = 3.333333... ; 10.0/3 =3.333333...地板除:用 /....
分类:
编程语言 时间:
2015-02-06 14:43:35
阅读次数:
141
from:http://www.cnblogs.com/yangyongzhi/archive/2012/09/17/2688326.htmlPython中dict详解python3.0以上,print函数应为print(),不存在dict.iteritems()这个函数。在python中写中文注释...
分类:
编程语言 时间:
2015-02-03 19:03:20
阅读次数:
278
介绍
python3发布以来,获取了广大程序员们的差评,说不稳定,又是不兼容什么的,不过差评归差评,python3既然已经发布,肯定是个趋势,但在python3.4里面,使用原来python2.7的mysqldb已经不能连接mysql数据库了,比较令人纠结,不过我们可以使用pymysql,来完成连接mysql的重任,步骤如下:
序号
描述
1...
分类:
数据库 时间:
2015-02-03 15:12:44
阅读次数:
250
git地址:https://github.com/LiuLang/bcloud-packagessudo apt-get install python3-setuptoolsmd5sum bcloud_3.6.1-1_all.deb 得到md5值,然后cat checksum.txt:692e17c...
分类:
系统相关 时间:
2015-02-02 17:45:55
阅读次数:
1188
在python3中读取网页的时候,会有乱码的问题,如果直接打开,会有错误Traceback (most recent call last): File "E:/Source_Code/python34/HTMLParser_in_3.py", line 81, in context = f...
分类:
编程语言 时间:
2015-02-02 12:19:17
阅读次数:
582
在Python2.x版本里,/usr/bin/lib/python2.x/ 目录下会有 BaseHTTPServer.py, SimpleHTTPServer.py, CGIHTTPServer.py 但是在Python3.x里,就没有上面的3个文件,而是合闭到了 /usr/bin/python3.x/http/server.p...
分类:
编程语言 时间:
2015-01-31 02:04:20
阅读次数:
584
一、文件形式的邮件 #!/usr/bin/env?python3
#coding:?utf-8
import?smtplib
from?email.mime.text?import?MIMEText
from?email.header?import?Header
sender?=?‘***‘
receiver?=?‘***‘
subject?=...
分类:
编程语言 时间:
2015-01-30 16:18:53
阅读次数:
198
Blender2.73a支持Python3.4.2,不仅可以定制界面、控制流程。还可以通过python的socket功能实现与其它软件的协同应用,实在是强大。比如可以实现:渲染服务器、集群渲染、外部数据导入、外部算法...
分类:
Web程序 时间:
2015-01-28 11:26:43
阅读次数:
356