1
我编码的程序,即,如果你把一个文本的文本框搜索它在Google.com上的内容,但它返回一个错误:不能连接“STR”和“实例”对象
TypeError: cannot concatenate 'str' and 'instance' objects
这是代码:
InputStrings = StringVar()
Entry(root, textvariable = InputStrings).pack()
def OutputText():
OutStrings = InputStrings.get()
b = "https://www.google.it/search?q="
if InputStrings:
b = b + InputStrings
webbrowser.open(b)
root.withdraw()
root.quit()
谢谢!!!,我在这工作了三天,现在工作,谢谢:D – 2014-08-29 08:26:45