上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页

2017年7月20日

WebServer_参考

摘要: 参考:http://blog.csdn.net/cjsafty/article/details/9323425 这里顺便记录下几个页面 lajphttps://code.google.com/p/lajp/ php-python:https://code.google.com/p/ppython/ 阅读全文

posted @ 2017-07-20 16:08 JasonKwok 阅读(179) 评论(0) 推荐(0)

Python的一个bug,记录一下

摘要: 安装报错:E:\webpy-master>python setup.py installTraceback (most recent call last): File "setup.py", line 6, in <module> from web import __version__ File " 阅读全文

posted @ 2017-07-20 16:08 JasonKwok 阅读(264) 评论(0) 推荐(0)

WebServer_简单例子

摘要: #-*-coding:utf-8-*- importwebimportjson urls=("/.*","index")app=web.application(urls,globals()) classindex:"""Server:Apache-Coyote/1.1Pragram:no-cache 阅读全文

posted @ 2017-07-20 16:07 JasonKwok 阅读(252) 评论(0) 推荐(0)

Http_urllib2

摘要: 打印http消息在控制台httpHandler=urllib2.HTTPHandler(debuglevel=1)httpsHandler = urllib2.HTTPSHandler(debuglevel=1)opener = urllib2.build_opener(httpHandler, h 阅读全文

posted @ 2017-07-20 16:06 JasonKwok 阅读(144) 评论(0) 推荐(0)

运行python程序不显示cmd方法

摘要: 运行python程序不显示cmd方法 Python.exe和pythonw.exe不同: 阅读全文

posted @ 2017-07-20 16:04 JasonKwok 阅读(642) 评论(0) 推荐(0)

查找当前文件路径

摘要: def getPath():homedir=os.path.split(os.path.realpath(__file__))[0]return homedir 编辑文件path=Result.getPath()f=open(path+"\\result.html","w")f.write(html 阅读全文

posted @ 2017-07-20 16:04 JasonKwok 阅读(150) 评论(0) 推荐(0)

MySQLdb

摘要: MySQLdb-1.2.2 API documentationhttp://mysql-python.sourceforge.net/MySQLdb-1.2.2/ • MySQLdb User Guide• http://mysql-python.sourceforge.net/MySQLdb.ht 阅读全文

posted @ 2017-07-20 16:03 JasonKwok 阅读(150) 评论(0) 推荐(0)

MySQLdb User's Guide

摘要: MySQLdb MySQLdb-1.2.2 API documentation http://mysql-python.sourceforge.net/MySQLdb-1.2.2/ MySQLdb User Guide http://mysql-python.sourceforge.net/MySQ 阅读全文

posted @ 2017-07-20 16:03 JasonKwok 阅读(246) 评论(0) 推荐(0)

ElementTree

摘要: http://effbot.org/zone/element-index.htm#installation http://effbot.org/zone/element-xpath.htm 阅读全文

posted @ 2017-07-20 16:02 JasonKwok 阅读(120) 评论(0) 推荐(0)

编解码原理,Python默认解码是ascii

摘要: 编解码原理,Python默认解码是ascii 首先我们知道,python里的字符默认是ascii码,英文当然没问题啦,碰到中文的时候立马给跪。 不知道你还记不记得,python里打印中文汉字的时候需要在字符串前面加 u: print u"来吗?" 这样子中文才能显示,这里面的u的作用就是将后面的字符 阅读全文

posted @ 2017-07-20 16:01 JasonKwok 阅读(653) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页

导航