Pycharm does not recognize the train.py file

Pycharm cannot recognize the train.py file, it is recognized as a text file

1. The original question:

Pycharm does not recognize the train.py file and recognizes it as a text file
insert image description here

2. Solution:

insert image description here

Find File Types under File->Settings-Editor. Search inside, the unrecognized train.py is in File type auto-detected by file content, delete train.py, and click Apply.

3. success

insert image description here

Guess you like

Origin blog.csdn.net/weixin_43913124/article/details/123125518