摘要: 判断语句复制>>> a = 3>>> b = 3 if a == 2 else 4>>> b4>>> 阅读全文
posted @ 2015-09-06 23:04 jihite 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 单重for循环>>> [x * x for x in xrange(10)][0, 1, 4, 9, 16, 25, 36, 49, 64, 81]单重for循环+if条件>>> [x * x for x in xrange(10) if x >> [(i,j) for i in range(10)... 阅读全文
posted @ 2015-09-06 23:02 jihite 阅读(1935) 评论(2) 推荐(0) 编辑
摘要: 1. 让Postgresql服务器被远程访问1.1 编辑 pg_hba.conf,配置用户的访问权限vi /etc/postgresql/8.4/main/pg_hba.conf 增加设置项host all all 192.168.1.0/24 md5 注:24是子网掩码的... 阅读全文
posted @ 2015-09-06 22:47 jihite 阅读(1153) 评论(0) 推荐(0) 编辑