customize

1.交互模式启动文件

由PYTHONSTARTUP指定

If this is the name of a readable file, the Python commands in that file are executed before the first prompt is displayed in interactive mode. The file is executed in the same namespace where interactive commands are executed so that objects defined or imported in it can be used without qualification in the interactive session. You can also change the prompts sys.ps1 and sys.ps2 in this file.


2.The Customization Modules

>>> importsite

>>> site.getusersitepackages()'/home/user/.local/lib/python3.5/site-packages'

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,963评论 0 13
  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 3,004评论 0 0
  • 宝贝 1.(20:30一一6:30,1/30,第二个30天)昨晚弟弟半夜醒来一次,6:00起床,今晚弟弟睡前仪式2...
    紫馨_2e3b阅读 105评论 0 1
  • 不知道该感叹时间快还是慢,还有半个月我们就要见面了。 昨晚没有跟你过多的聊天,因为我就是有一点点的生气,就想你哄我...
    减肥的女孩阅读 99评论 0 1
  • 2019年7月1日 星期一 深圳 雨 时间过得真快,第33期日记星球就快要接近尾声,明天将是我们的毕业典礼。 我的...
    刘德燕阅读 479评论 1 7

友情链接更多精彩内容