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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -