python - Unexpected character after line continuation character -
python - Unexpected character after line continuation character -
i'm trying run python script using terminal in mac os x.
#!/usr/bin/env python import re lept = open("nc_005823.gbk", "r+") line in lept : if re.match("unknown function", line ): print line
but gives me error:
file "test.py", line 1 {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210 ^ syntaxerror: unexpected character after line continuation character
i can' t figure out what's wrong. code runs on online editors. how prepare this?
python osx terminal
Comments
Post a Comment