【发布时间】:2024-01-16 17:06:01
【问题描述】:
只是一个简单的问题,如何将数组的内容插入到我的消息中?
messages.info(request, "text_a" , array , "text_b")
这只会在显示消息后为我提供“text_a”。
【问题讨论】:
-
制作格式化字符串,
messages.info函数不接受无限参数
标签: python arrays django message
只是一个简单的问题,如何将数组的内容插入到我的消息中?
messages.info(request, "text_a" , array , "text_b")
这只会在显示消息后为我提供“text_a”。
【问题讨论】:
messages.info 函数不接受无限参数
标签: python arrays django message
你可以使用 messages.info(request, "text_a" , ' '.join(array), "text_b")
【讨论】:
messages 是什么?