为什么我在模块中定义了路径attr时无法从模块中导入

时间:2018-11-10 11:55:59

标签: python import path attributes sys

'''import section'''
    import sqlite3
    import sys
    sys.path.append("E:\PyCharm\Projects\data1.0\main_window")
    from main_window.mi import path
    def main():
''' there is usage of attr'''
        connection=sqlite3.connect(path)
        first_cursor=connection.cursor()

0 个答案:

没有答案