a = '1' print '%s' % `a` 如果a是str,打印结果是'1' 如果a是int,打印结果是1 转载于:https://www.cnblogs.com/iNeoWong/p/4817153.html