标签列表

everest33

自制力

导航

2017年3月11日 #

Python3.x和Python2.x的区别

摘要: [这里有个更全的] http://old.sebug.net/paper/books/dive-into-python3/porting-code-to-python-3-with-2to3.html 1.性能 Py3.0运行 pystone benchmark的速度比Py2.5慢30%。Guido 阅读全文

posted @ 2017-03-11 12:10 everest33 阅读(366) 评论(0) 推荐(0) 编辑

python3 print函数的用法

摘要: 1. 输出字符串 >>> strHello = 'Hello World' >>> print (strHello) Hello World 2. 格式化输出整数 支持参数格式化,与C语言的printf类似 >>> strHello = "the length of (%s) is %d" %('H 阅读全文

posted @ 2017-03-11 10:33 everest33 阅读(33101) 评论(0) 推荐(0) 编辑