US STATE\tPOSTAL ABBREVIATION\tSTANDARD ABBREVIATION\n \
^
SyntaxError: invalid syntax
或者
SyntaxError: EOF while scanning triple-quoted string literal
原因是每一行都要加空格斜杠,并且用echo -e
例如
! echo -e """ \
US STATE POSTAL ABBREVIATION STANDARD ABBREVIATION\n \
Alabama AL Ala.\n \
Alaska AK Alaska\n \
""" > state.txt
网友评论