我想對文件之間的導入變量進行更改。 參見下例: file1.py string = 'data1'
def change_string():
global string
string = 'data2'
#this does not update string in file2
change_string()
file2.py from file1 import
我想從我的Leo.py文件導入變量我Max.py文件是這樣的:Leo.py: > import tkinter import time import os import Max from tkinter import *
> from tkinter import messagebox as tkMessageBox from selenium import
> webdriver from