如何将Python 3转换为Python 2代码?时间:2022-03-18 20:26:10I had written a program in Python 3, but now want to convert it into Python 2 code. Are there any utilities to do that automatically? 我在Python 3中编写了一个程序,但现在想将其转换为Python 2代码。是否有任何工具可以自动完成? 1 个解决方案 #1 34 You want 3to2 for that. 你想要3to2。 #1 34 You want 3to2 for that. 你想要3to2。