简体   繁体   中英

Atom doesn't recognize classes imported from another file — python

This is a beginner question but I am using Atom and when I create classes in one file and then import those classes using import file_containing_classes to use them in another file it only sees one of the classes? Does it have something to do with __pycache__ . Even after I run the file save the file, the python script that imports the file with classes doesn't recognize it.

Suggestions? Thanks!

我认为问题与我安装了氢气有关,一旦我像氢气笔记本一样运行代码,似乎就可以了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM