我刚开始自学Python,对这个脚本需要一点帮助:
old_string = "didnt work" new_string = "worked" def function(): exec("old_string = new_string") print(old_string) function()
我希望能使old_string = "worked"。
old_string = "worked"
用户名或邮箱地址
密码