我在调用python类中的函数时遇到了一些问题。在
这是我的文件夹层次结构。
~/Code/程序/主.py
~/Code/program/dc\u函数/dcfunc.py公司
~/Code/program/dc_functions/init.py
基本上,我想使用dcfunc.py公司内部主.py. 我该怎么做?在
相关内容dcfunc.py公司公司名称:
import subprocess, string, os, sys
class dcfunc:
#Create raw Audio track(Part of Dreamcast Disc format) + Burn track to disk.
def __init__(self):
self.self = "self"
def burnaudiotrack(device):
**CODE***
谢谢你的建议!在
你需要你的初始py文件名为
__init__.py
然后使用
你就可以使用这个函数了。在
相关问题 更多 >
编程相关推荐