Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Pycharm无法完成来自不同文件的对象属性_Python_Python 3.x_Autocomplete_Pycharm - Fatal编程技术网

Python Pycharm无法完成来自不同文件的对象属性

Python Pycharm无法完成来自不同文件的对象属性,python,python-3.x,autocomplete,pycharm,Python,Python 3.x,Autocomplete,Pycharm,以下是一个例子: # file1 from file2 import * class test: def __init__(self): self.test = 5 def send_args(self): test2(self) Pycharm似乎不知道如何自动完成自检。 Visual Studio代码正在开箱即用地执行此操作 我什么都试过了。抱歉,我没有提到file1正在将self发送到file2中的函数。我在下面添加了新代码。它仍然不

以下是一个例子:

# file1
from file2 import *

class test:
    def __init__(self):
         self.test = 5

    def send_args(self):
        test2(self)
Pycharm似乎不知道如何自动完成自检。 Visual Studio代码正在开箱即用地执行此操作


我什么都试过了。

抱歉,我没有提到file1正在将self发送到file2中的函数。我在下面添加了新代码。它仍然不起作用。复制:
# file2
def test2(self):
    print(self.test)