关于机器学习入门的一些小问题的每日记录 2021.9.9 代码格式规范 form https://mp.weixin.qq.com/s?__biz=MzIwOTc2MTUyMg==&mid=2247524841&idx=3&sn=f45e54bf7aa0a2f43014823da3b457b1&chksm=976cc474a01b4d62234b7c2e10e42431adb051ff9a1e0129546dc01049148d07d46a6fd222eb&mpshare=1&scene=23&srcid=0909NBMyK5RJnv95TFDWzh6j&sharer_sharetime=1631187834370&sharer_shareid=979ececba97c9bda9c0937cb1cb66a3c#rd 一、Jupyter notebook 篇 Jupyter notebook的代码要想写得规范,推荐用Code prettify插件。 安装插件 首先插件Nbextensions 执行以下命令 pip install jupyter_contrib_nbextensions 无报错再执行: jupyter contrib nbextension install --user 选取Code prettify模块 备注:需要安装 yapf模块 pip install yapf juoyter改变原始的文件位置