擅长:python、mysql、java
<p>您需要运行Python,然后运行2to3脚本,然后运行标记和参数。在</p>
<p>在命令行上运行2to3如下所示:</p>
<p>[python][2tp3.py][tags][要转换的文件(可以是1+)]</p>
<blockquote>
<p>C:\python33\python.exe C:\python33\Tools\Scripts\2to3.py -w C:\Users\watt\Documents\Tom's Stuff\Programs\Python\python 2 test.py</p>
</blockquote>
<p>通过运行Python33和2to3.py,可以运行2to3脚本。然后添加-w标记,将程序实际转换为Python3。然后添加要转换的文件。在</p>
<p>通过先将目录改为程序文件夹,可以简化命令。在</p>