We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20230626
Linux
Code Build/Linux 64位
如 range(1,5),使用 range(1,num) 将参数用变量代替后没有进行循环
使用 range(1,num) 将参数用变量代替后没有进行循环
No response
无
for 循环中 range 的参数可以用变量代替
The text was updated successfully, but these errors were encountered:
@NineHolic 请使用如下格式, 即在 range 中变量必须是整型
range
{% for i in range(1,int(num)) %}
在QD框架中, 所有使用正则表达式获取到的变量均为 str 字符串(除 /g 获取到的变量是 list 列表)类型, 因此你需要进行类型转换
str
/g
list
如果还有问题, 请 reopen 这个 issue
Sorry, something went wrong.
No branches or pull requests
Verify steps
QD Version
20230626
Bug on OS
Linux
Bug on Platform
Code Build/Linux 64位
To Reproduce
如 range(1,5),使用 range(1,num) 将参数用变量代替后没有进行循环
Describe the Bug
使用 range(1,num) 将参数用变量代替后没有进行循环
QD config
No response
QD log
Expected behavior
for 循环中 range 的参数可以用变量代替
Screenshots
No response
The text was updated successfully, but these errors were encountered: