摘要: %还是format 皇城PK Python中格式化字符串目前有两种阵营:%和format,我们应该选择哪种呢? Python2.6引入了format这个格式化字符串的方法下面两者进行下比较 上面的代码很明显会抛出一个如下的TypeError: TypeError: not all arguments 阅读全文
posted @ 2018-10-09 11:12 毛丫头 阅读(231) 评论(0) 推荐(0)