SyntaxError: keyword can't be an expression

前端 未结 2 1658
梦谈多话
梦谈多话 2021-01-07 10:04

I have

hd.meta(http-equiv=\'Content-Type\', content=\'text/html;charset=UTF-8\')

And I am getting:

SyntaxError: keyword can\'t be

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-07 10:44

    I think http-equiv is being parsed as http minus equiv. You should try http_equiv, or possibly use a special argument depending on the API.

提交回复
热议问题