Python2.6不支持format(123456L, ",")或format(123, ",")的format用法,会报下面的错误
ValueError: Unknown format code ‘,‘ for object of type ‘long‘
ValueError: Unknown format code ‘,‘ for object of type ‘int‘
Python2.7支持format(123456L, ",")或format(123, ",")
原文地址:https://www.cnblogs.com/yizipiaoxiang/p/8576368.html
时间: 2024-10-07 04:50:58