- 博客(4)
- 收藏
- 关注
原创 My Django Cookbook
windows运行“django-admin.py startproject hello”创建django项目时报错“ImportError: No module named django.core” 原因:安装两个版本的python,运行py程序使用前一个版本python程序所致 解决:卸载老版本python,在删除程序过程选择“repair”修复py文件管理程序,再试试就OK了。 ...
2011-01-25 16:04:56 67
原创 sed命令
sed命令 输出第二行到行尾 sed '2,$w output.txt' input.txt 删除文件第一行,并输出到文件 sed -e '1d' input.txt >> output.txt 删除第一行到第五行,并输出到文件 sed -e '1,5d' input.txt >> output.txt 删除第一行并更新到input文件...
2011-01-21 15:16:55 79
原创 My Java Cookbook
// 除法,并返回百分比格式 public static String percent(double num1, double num2) { NumberFormat format = NumberFormat.getPercentInstance(); format.setMinimumFractionDigits(4); // 小数点精度 return format...
2011-01-05 20:44:12 69
原创 linux环境下cx_Oracle的“ImportError: No module named cx_Oracle”错误。
环境:redhat AS + python2.7 + oracle instant client + cx_oracle oracle instant client10.2.4 (linux) http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 我下载的是:ora...
2011-01-03 13:20:42 775
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人