1. 程式人生 > >python快捷查看模塊源碼

python快捷查看模塊源碼

read bsp str 來源 sdn pan () _file__ __file__

參考來源:

https://blog.csdn.net/seekermp4/article/details/79142332/

import datetime

with open(str(datetime.__file__), "r") as f:
    print(f.read())

python快捷查看模塊源碼