How to call python2 from python3 program?
PHP中文网
PHP中文网 2017-06-22 11:52:14
0
3
851

I need to call an independent module written in python2 (pass some parameters) in a program written in python3. In addition to using subprocess, is there a more elegant way?

PHP中文网
PHP中文网

认证0级讲师

reply all (3)
学霸

It’s better to upgrade 2 to 3. Usepy2to3.py

    某草草

    Use __future__ in python2?

      学霸

      A more elegant way is to upgrade the python2 program to a python3 program.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!