蓬莱网站建设哪家好,成都网站建设四川冠辰,上海建章汽车服务有限公司,网站哪些付款二维码是怎么做的1.使用Windows 命令提示符#xff08;cmd#xff09;cd到2to3.py 脚本所在位置#xff0c;如下图#xff1a;
找不到的2 to 3.py的去 pycharm中双击shift搜索一下 2.紧接着运行 2to3.py 脚本#xff08;可省略#xff09; 3.执行你想要转换的文件
python 2to3.py -w H:…1.使用Windows 命令提示符cmdcd到2to3.py 脚本所在位置如下图
找不到的2 to 3.py的去 pycharm中双击shift搜索一下 2.紧接着运行 2to3.py 脚本可省略 3.执行你想要转换的文件
python 2to3.py -w H:\QIANfeng\sacrapy\图片识别.py 如果出现了上图这个报错
RefactoringTool: Cant parse H:\QIANfeng\sacrapy\图片识别.py: ParseError: bad input: type24, value%, context(, (18, 6)) RefactoringTool: No files need to be modified. RefactoringTool: There was 1 error: RefactoringTool: Cant parse H:\QIANfeng\sacrapy\图片识别.py: ParseError: bad input: type24, value%, context(, (18, 6))
说明是一个不正确的puthon2 文件你去修改一下就可以了
在运行第三步。