Python语法基础
摘要:
1.字符串之间可以进行加法运算 实际是把字符串拼接起来 例: str1='hello' str2='word' str3=str1+str2 print(str3) 输出结果: helloword 2.字符串和数字之间可以进行乘法运算 实际是复制2(num)个字符串(str1) str1='hell 阅读全文
posted @ 2020-05-17 20:30 陈肉包 阅读(151) 评论(0) 推荐(0)
2020年5月17日 #
posted @ 2020-05-17 20:30 陈肉包 阅读(151) 评论(0) 推荐(0)