Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下表达式接受deal_status/2/
deal_status/2/
(r'^deal_status/(?P<deal_id>\d+)/$', _deal_status_view),
但是我如何接受任何逗号分隔的数字加上一个没有任何逗号的数字?
deal_status/2,3,5/ 或者 deal_status/2/
deal_status/2,3,5/
Django 专业人士在哪里测试 url 正则表达式?是否有任何在线验证器可以帮助我?
非常感谢,
(r'^deal_status/(?P<deal_id>\d+(,\d+)*)/$', _deal_status_view),
https://regex101.com/#python