mac小技巧
soda東風
写写博记录学习成果
展开
-
mac sudo命令报错完美解决方法
sudo命令报错:sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set尝试了chown和设置用户组等网上的各种方法有用的方法是:open -e ~/.bash_profile新增:export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"保存后source .bash_profile大功告成!!原创 2020-10-19 18:37:18 · 2090 阅读 · 0 评论 -
mac plt显示中文解决方法
下载SimHei字体,然后放到mac的matplotlib的字体库,然后改配置。。。无效且麻烦在网上搜索到了好用的方法:plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']永久更改方法:找到字体路径(跟其他教程一样)进入pythonimport matplotlibprint(matplotlib.matplotlib_fna...原创 2019-12-27 13:30:24 · 2287 阅读 · 6 评论 -
mac 更改文件默认打开程序(适用于所有类型文件)
command+i查看文件信息,更改打开方式,应用于所有文件原创 2019-12-26 11:19:54 · 508 阅读 · 0 评论