How do I check what version of Python is running my script?

前端 未结 22 2314
醉话见心
醉话见心 2020-11-22 04:11

How can I check what version of the Python Interpreter is interpreting my script?

22条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 04:49

    If you are working on linux just give command python output will be like this

    Python 2.4.3 (#1, Jun 11 2009, 14:09:37)

    [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2

    Type "help", "copyright", "credits" or "license" for more information.

提交回复
热议问题