Where are math.py and sys.py?

前端 未结 4 869
孤独总比滥情好
孤独总比滥情好 2020-12-31 07:47

I found all the other modules in Python33/Lib, but I can\'t find these. I\'m sure there are others \"missing\" too, but these are the only ones I\'ve noticed. They work just

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 08:08

    These modules are not written in Python but in C. You can find them (at least on linux) in a subfolder of the lib-folder called lib-dynload.
    The math module is then in a file math.cpython-33m.so (on windows probably with .dll instead of .so). The cpython-33m part is my python version (3.3).

提交回复
热议问题