我在变量的特定区域连接时遇到问题在它说 text=shrek + 'USD' 的地方,程序一直说有错误

问题描述

settingtext = tk.Entry(window2,bg='deepskyblue',fg='blue',font='Consolas 10 bold')
settingtext2 = tk.Entry(window2,font='Consolas 10 bold')
d.create_window(125,400,window=settingtext)
d.create_window(375,window=settingtext2)
def lololol():
    d.itemconfig(fiftysix,state=norMAL)
    d.itemconfig(line1,state=norMAL)
    d.itemconfig(melb,state=HIDDEN)
    d.create_window(125,200,window=settingtext)
    d.create_window(375,window=settingtext2)
    d.itemconfig(text_png,state=HIDDEN)
def Settings_Page():
        d.itemconfig(fiftysix,state=HIDDEN)
        d.itemconfig(line1,state=HIDDEN)
        d.itemconfig(melb,state=norMAL)
        d.create_window(125,window=settingtext)
        d.create_window(375,window=settingtext2)
        d.itemconfig(text_png,state=norMAL)
        d.after(5000,lololol)
global zmao
global shrek
zmao = settingtext.get()
shrek = str.replace(zmao,"''","")
zmao2 = settingtext2.get()
def Convert_Stuff():
    AUD = 1.36
    if zmao == zmao and zmao2 == zmao2: 

# over here I intend to add a string in the text part of the comma variable,but it isnt working for whatever reason.  

        comma = d.create_text(125,450,text=shrek + 'USD',font='Aerial 20',fill='blue') 

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)