更新时间:2023-02-17 09:42:18
给出两个字符串
String1 = 'This is '
String2 = 'a mouse.'
要连接它们,您可以使用其中一个
To concatenate them, you can use either
String3 = String1.String2
或更灵活:
String3 = sprintf("%s%s", String1, String2)
键入help string
或help sprintf
以获得有关这两种方法的更多信息.
type help string
or help sprintf
for more information about the two methods.