我更改了flaskqrcode中的语法,但无法执行

2024-10-04 03:18:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我在https://github.com/marcoagner/Flask-QRcode/tree/master/sample_application中使用代码 但是我在{}符号上有个错误

<img src="{{ qrcode("Load icon image from static folder.", error_correction='H', icon_img='icon.jpg') }}">

我把它改成了

var test = "hello eve."

<img src="{{ qrcode("+test+", error_correction='H', icon_img='icon.jpg') }}"> 

它不起作用而且失败了,我在网上搜索了很多次,但我仍然不知道它是什么


Tags: httpstestsrcgithubcomtreeflaskimg