Any check to see if the code written is in python 2.7 or 3 and above?

后端 未结 4 2002
挽巷
挽巷 2020-12-15 04:10

I have a buggy long python project that I am trying to debug. Its messy and undocumented. I am familiar with python2.7. There are no binaries in this project. The straight f

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 04:32

    add this line to the file:

    help()
    

    this should automatically print the version along with the default help interface. remember to remove it later.

提交回复
热议问题