map(eval, raw_input().split()) 不太安全?
map(eval, raw_input().split()) less secure?
Referring to this Whosebug question "phoris" 的评论指出 map(eval, raw_input().split())
不太安全。有人能解释一下它为什么不安全吗?在什么情况下?
任何上下文。它通过 eval()
进行用户输入,这是一个巨大的安全漏洞。
Referring to this Whosebug question "phoris" 的评论指出 map(eval, raw_input().split())
不太安全。有人能解释一下它为什么不安全吗?在什么情况下?
任何上下文。它通过 eval()
进行用户输入,这是一个巨大的安全漏洞。