我正在尝试使用texttable为练习构建一个表。你知道吗
tab.add_row(row) = ["Match1", Team1_matches[1], Team2_matches[1], max(Team1_matches[1],Team2_matches[1])]
我明白了:
tab.add_rows(row) = ["Match1", Team1_matches[1], Team2_matches[1]]
SyntaxError: can't assign to function call
Tags:
您将元素列表分配给了
tab.add_row(row)
,这就是为什么您得到了SyntaxError
正确的使用方法是:
相关问题 更多 >
编程相关推荐