python
NFTercel
这个作者很懒,什么都没留下…
展开
-
python自带web服务器
1、安装python3,并添加到path中2、命令中执行:python -m http.server 8000 说明:服务器文件显示是执行命令行所在的目录(如上显示为~目录下的文件)...原创 2020-03-07 15:06:44 · 631 阅读 · 0 评论 -
python pyh html解决中文中文乱码的方法
pyh github上源码:https://github.com/hanxiaomax/pyh解决中文乱码的方法:1.打开调用的类:2.调转到pyh源码3.进来后我们可以看到charset,要把它加到printOut中,加入口的代码:看看效果:原创 2017-08-16 11:48:05 · 1630 阅读 · 0 评论 -
trac初探
trac安装:http://trac.edgewall.org/wiki/TracInstall#Usingeasy_installhttp://lsn-1212.iteye.com/blog/1465180坑(如果如给用户加权不能访问db):解决方案:给admin用户赋予权限命令(admin:用户名):$ trac-admin /path/to/projenv p原创 2015-03-17 15:45:19 · 583 阅读 · 0 评论 -
Python:使用matplotlib绘制图表
http://blog.csdn.net/dyx1024/article/details/7296748转载 2014-10-15 12:31:04 · 570 阅读 · 0 评论 -
python解决osx安装PIL时的_imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found
https://github.com/apanly/piRobot/blob/master/install.md原创 2014-10-14 19:59:52 · 1395 阅读 · 0 评论 -
python使用PIL库做图像处理
http://www.cnblogs.com/way_testlife/archive/2011/04/17/2019013.html转载 2014-10-15 12:25:53 · 488 阅读 · 0 评论 -
python编码
http://www.cnblogs.com/huxi/archive/2010/12/05/1897271.html转载 2014-09-30 16:46:24 · 431 阅读 · 0 评论 -
mac 安装easy_install
http://www.qinbin.me/mac-osx%E4%B8%ADpython%E4%B8%8D%E8%83%BD%E4%BD%BF%E7%94%A8easy_install%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/转载 2014-09-28 17:37:42 · 4216 阅读 · 0 评论 -
mac上安装xlrd
(1) 下载xlrd.py模块 http://mac.softpedia.com/progDownload/xlrd-Download-48230.html (通过在google中搜索:xlrd Mac)(2)解压缩下载的模块,放到你喜欢的python工作目录下,然后进入该目录:Zhongyuans-MacBook-Air:~ den$ cd xlrd-*Zhongyua原创 2014-08-25 10:49:46 · 13759 阅读 · 1 评论 -
应用split函数进行多个空格分割
使用split函数进行多个空格分割在项目中经常会遇到按字符分割字符串的情况,可以使用String对象的split函数进行分割。先看实际情况:String str = "关键词1 关键词2 关键词3";String[] words = str.split(" ");for(String word : words){ System.out.println(wo转载 2014-03-24 22:57:11 · 3817 阅读 · 0 评论 -
关于python 自动化测试的胶片等资源
Pythonic TDD (powered by S5 v1.1) http://zoomquiet.org/res/s5/100826-PyTDD/ python 测试浅涉 自动化测试 演讲胶片 http://blogold.chinaunix.net/u/21908/showart_2534554.html python编程规范:https://docs.g转载 2014-03-25 16:59:31 · 731 阅读 · 0 评论 -
Python逐行读取文件内容
1. 最基本的读文件方法:?# File: readline-example-1.py file = open("sample.txt") while 1: line = file.readline() if not line: break pass # do something 一行一行得从文件读数据,显然比较慢;不过转载 2014-01-08 10:55:37 · 716 阅读 · 0 评论 -
IndentationError:expected an indented block错误解决
http://blog.csdn.net/neilhappy/article/details/7724959原创 2014-01-08 13:57:53 · 687 阅读 · 0 评论