点击运行
#!/usr/bin/python3 str = "Line1-abcdef \nLine2-abc \nLine4-abcd"; print (str.split( )) print (str.split(' ', 1 ))
运行结果 :
正在执行...