小编Mou*_*tra的帖子

无法连接'str'和'instance'

我有一个使用GUI元素的程序并返回错误

cannot concatenate 'str' and 'instance' objects
Run Code Online (Sandbox Code Playgroud)

守则是:

def PeopleSearch():
    query = SearchTerm
    query = ('what is '+ query)
    string = ("<center><font size = 14> " + query + ' </font></center><br><img src =picture')
    j = 0
    try:
        gs = GoogleSearch(query)
        gs.results_per_page = 100
        results = gs.get_results()
Run Code Online (Sandbox Code Playgroud)

压痕已经改变.嗯.SearchTerm基本上来自文本框.

python tkinter concatenation

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

concatenation ×1

python ×1

tkinter ×1