python运行出现invalid syntax,是怎么回事

img



```python
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> f = open("联系方式.txt")
    for line in f:
         print (line,end="")


```

invalid syntax 代码缩进问题,请检查一下代码缩进

f = open("联系方式.txt")

for line in f:
    print(line, end="")

img