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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -