摘要: print "hello %s %s" % ('wd','pc') c风格 print "hello {1} {0}".format("wd",pc') c#风格 可以定义字符串的顺序 list = ['hello','1','7'] '%s %d-%d' % ('hello',7,1) 结果 'hello 7-1' '%s,%s:%s' % (lis... 阅读全文
posted @ 2017-11-01 21:26 一只宅男的自我修养 阅读(136) 评论(0) 推荐(0)