How do I determine if my python shell is executing in 32bit or 64bit?

前端 未结 18 1115
北恋
北恋 2020-11-22 04:25

I need a way to tell what mode the shell is in from within the shell.

While I\'m primarily an OS X user, I\'d be interested in knowing about other platforms as well.<

18条回答
  •  名媛妹妹
    2020-11-22 04:35

    import sys
    print(sys.version)
    

    3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)]

提交回复
热议问题