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
2. Solution:
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.