首页 > 解决方案 > Python 属性模块

问题描述

我有 3 个文件

py

import pandas as pd
import C as c

dfresult = pd.read_csv("result.csv",sep=",")
figure = c.figure

py

import A


dfresult = A.dfresult

丙氨酸

import B as b

dfresult = b.dfresult

...creating figures

如果我使用 B 读取数据并且不在 B 中导入 A 它正在工作,如果我导入 A 文件(我的 startfile)我得到 allways 模块 A 没有属性 dfresult 等等

请解释为什么?

标签: pythonmodule

解决方案


推荐阅读