【发布时间】:2018-10-11 17:24:10
【问题描述】:
我有一个 python3 脚本,它使用简单的断言语句来比较两个变量的值。
assert response['checksum'] == checksum
一个名为 bandit 的代码分析工具将此标记为不良做法且保护较少。 https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html
使用 assert 真的是不好的做法并且不太安全吗?
【问题讨论】:
标签: python python-3.x security