[英]How to use user packages in Visual Studio 2017 in a python application
I have this python application structure in Visual Studio 2017. I created a tests
folder using the Solution explorer and there's a test.py
file in it. 我在Visual Studio 2017中具有此python应用程序结构。我使用解决方案资源管理器创建了一个tests
文件夹,其中有一个test.py
文件。 I want to use the test
module which is stored in tests
directory. 我想使用存储在tests
目录中的test
模块。 But when I try to use import tests.test
it says test
not defined. 但是,当我尝试使用import tests.test
它说test
未定义。 I have just started learning python. 我刚刚开始学习python。 I looked up to this but I dont understand why isnt it working. 我抬起头, 这个可是我不明白为什么不是它的工作。 Am I doing something wrong? 难道我做错了什么? I looked it up here 我在这里看了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.