我有一个使用 GUI 元素的程序并返回错误
cannot concatenate 'str' and 'instance' objects
该代码是:
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()
缩进已更改。唔。SearchTerm 基本上来自文本框。