摘要: 使用print输出各型的字符串整数浮点数出度及精度控制strHello = 'Hello Python' print strHello#输出结果:Hello Python#直接出字符串1.格式化输出整数pythonprint也支持参数格式化,与C言的printf似,strHello = "the length of (%s) is %d" %('Hello World',len('Hello World'))print strHello#输出果:the length of (Hello World) is 112.格式化输出1 阅读全文
posted @ 2011-02-20 16:33 SpringMVC+Hibernate 阅读(180) 评论(0) 推荐(0) 编辑
友情链接:厦门事业单位