1、先放个大招:去除字符串中所有的空格和tab换行符. str=" a b c de f " print(str.replace(" ","").replace("\n","")) ===输出结果=== abcdef ...
確定! 回上一頁