Python从类调用函数

2024-10-01 11:19:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我在调用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***

谢谢你的建议!在


Tags: 函数pyself程序文件夹层次结构initdef