摘要: python拼接字符串一般有以下几种方法: 1,通过(%)操作符拼接 print('%s %s' % ('Hello', 'world')) >>> Hello world 2,直接通过(+)操作符拼接 str_1 = 'Hello world! ' str_2 = 'My name is Pyth 阅读全文
posted @ 2020-05-07 02:11 JIMfan 阅读(2153) 评论(0) 推荐(0) 编辑