摘要:
%s 用str()方法处理对象%r 用rper()方法处理对象,打印时能够重现它所代表的对象(rper()unambiguously recreate the object it represents)例一:>>> print("Today is %s" % a)Today is sunday>>>... 阅读全文
摘要:
让Python的经验更多一点Python while 1 和 while True 速度比较Python %s和%r的区别 阅读全文
摘要:
Referenceshttp://legacy.python.org/dev/peps/pep-0285/http://stackoverflow.com/questions/3815359/while-1-vs-for-whiletrue-why-is-there-a-difference本文内容... 阅读全文