17.连接,复制,输入输出
2019-02-19 本文已影响0人
酷睿i1999
1.字符串连接
“str1”+”str2”
“str1””str2”
2.字符串复制
“str1”*3
3.键盘输入输出
a = input(“提示”)
print(“”,[end=”\n/\t/*”])
end=”任意字符串”,以任意字符串结尾,不写默认\n结尾。

1.字符串连接
“str1”+”str2”
“str1””str2”
2.字符串复制
“str1”*3
3.键盘输入输出
a = input(“提示”)
print(“”,[end=”\n/\t/*”])
end=”任意字符串”,以任意字符串结尾,不写默认\n结尾。