使用单引号或双引号来创建字符串,使用三引号创建多行字符串。 ... msg = " Python编程时光" >>> >>> msg.lstrip() # 去除左边空格 'Python编程时光' >>> msg.rstrip() ...
確定! 回上一頁