国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

python - PyCharm cannot recognize the import path problem
滿天的星座
滿天的星座 2017-06-12 09:21:26
0
2
1054

File Directory

spider
    -models
        -test.py
        -customer.py
    

text.py

from customer import Customer

customer = Customer()

PyCharm will prompt Unresolved reference 'customer'

The program runs without problems

I would like to ask, how to make the editor correctly identify the path?

滿天的星座
滿天的星座

reply all(2)
某草草
from .customer imort Customer
或者
from models.customer import Customer
阿神

from models.customer import Customer

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template