Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1340395
  • 博文数量: 243
  • 博客积分: 888
  • 博客等级: 准尉
  • 技术积分: 2955
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-05 14:33
个人简介

漫漫长路,其修远兮!

文章分类

全部博文(243)

文章存档

2017年(2)

2016年(22)

2015年(32)

2014年(57)

2013年(107)

2012年(23)

发布时间:2014-04-01 18:04:32

1.格式化为字符串%s >>> format = "Hello, %s. %s enough for ya?">>> values = ('world', 'Hot')>>> print format % valuesHello, world. Hot enough for ya?2.格式化为实数%f>>> format = "Pi with three decimals: %.3f"//保留小数点后3个有效数字>>> from math import pi//导入pi的值>>> print format % .........【阅读全文】

阅读(2298) | 评论(0) | 转发(1)

发布时间:2014-04-01 11:27:50

1.......【阅读全文】

阅读(819) | 评论(0) | 转发(0)

发布时间:2014-03-31 15:46:04

1.安装方式sudo easy_install Torndb2.连接数据库点击(此处)折叠或打开db=torndb.Connection(host+":"+str(port),db,user=user,password=pwd)cre_sql="create table blog(id int,content text)"db.execute(cre_sql)string='wa.........【阅读全文】

阅读(5547) | 评论(1) | 转发(0)

发布时间:2014-03-28 17:16:59

1.reload(sys)动态重新加载sys模块......【阅读全文】

阅读(1433) | 评论(0) | 转发(2)

发布时间:2014-03-27 18:05:25

原文地址:http://blog.csdn.net/fxjtoday/article/details/6307285......【阅读全文】

阅读(1325) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册