如何快速查看源码

如何快速查看源码,第1张

如何快速查看Python源码
import module_name 
with open(module_name.__file__,"r")asf:
    print(f.read())

例如:

import pandas as pd
with open(pd.__file__,"r")asf:
    print(f.read())

结果:

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/905371.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-15
下一篇2022-05-15

发表评论

登录后才能评论

评论列表(0条)

    保存