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.
我想在 python 3 中为一个由非常长的字符串组成的列表运行 for 循环。但是,无论我执行什么,我的空闲都会永远挂起。不仅对于迭代,而且对于如此长的字符串的非常简单的打印会导致空闲冻结。有什么解决办法吗?我的 PC 配备 8GB RAM,处理器是核心 i5,2.6GHZ。