擅长:python、mysql、java
<p>实际上,有一种方法可以安全地删除Python中的字符串;按照<a href="https://stackoverflow.com/questions/982682/mark-data-as-sensitive-in-python/983525#983525">Mark data as sensitive in python</a>使用memset C函数</p>
<p>在文章发表后很长一段时间,编辑为添加:<a href="http://guilload.com/python-string-interning/" rel="nofollow noreferrer">here's a deeper dive into string interning</a>。在某些情况下(主要是涉及非常量字符串),不会发生内部连接,这使得基于CPython引用计数GC的字符串值清理稍微更加明确。(尽管仍然不是“擦洗/消毒”清理。)</p>