警告提示:
This dictionary creation could be rewritten as a dictionary literal less… (Ctrl+F1)
Inspection info: This inspection detects situations when dictionary creation could be rewritten with dictionary literal.
分析原因:
系统检测在程序之前有定义dict2,所以不需要分行写,可以直接写到一行
更多推荐
python警告:This dictionary creation could be rewritten as a dictionary literal les
发布评论