2,617
次編輯
Tankianting(討論 | 貢獻) |
Tankianting(討論 | 貢獻) |
||
行 23: | 行 23: | ||
# [https://stackoverflow.com/questions/30154541/how-do-i-concatenate-strings 連結字串] | # [https://stackoverflow.com/questions/30154541/how-do-i-concatenate-strings 連結字串] | ||
#: <code>let concat_str = format!("{}{}", str1, str2);</code> | #: <code>let concat_str = format!("{}{}", str1, str2);</code> | ||
==字串== | |||
# <code>a = a[..1].to_string();</code> | |||
[[category:資訊]] | [[category:資訊]] |