python - 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 等等
请解释为什么?
解决方案
推荐阅读
- r - 将宽数据转换为高数据
- node.js - 如何使用 Puppeteer 启用阅读器模式/提取页面
- sql - 创建开始日期和结束日期
- javascript - 我有一个使用 Antd 的 React 组件,需要设置每隔一行的背景样式
- javascript - 将 jquery 响应分配给最近 tr 中类名的 div
- angular - 在 Observable 中的 Observable 中执行操作
- laravel - 是否可以在 Laravel 的路由字符串中间有一个路由参数?
- android - 是否可以使用 react-native 核心组件模式在 android 上创建非全屏模式?
- php - 下载图像时处理 404 错误
- python-3.x - 使用循环的多个 Boxplot