How to detect Mac OS version using Python?

后端 未结 5 663
醉梦人生
醉梦人生 2020-12-28 15:56

My application is assumed to be running on a Mac OS X system. However, what I need to do is figure out what version of Mac OS (or Darwin) it is running on, preferably as a

5条回答
  •  萌比男神i
    2020-12-28 16:26

    If you are already using os, you might want to use os.uname()

    import os
    os.uname()
    

提交回复
热议问题