#!/usr/bin/python3和#!/usr/bin/env python3的区别
脚本语言的第一行,目的就是指出,你想要你的这个文件中的代码用什么可执行程序去运行它,就这么简单。#!/usr/bin/python3
是告诉操作系统执行这个脚本的时候,调用 /usr/bin 下的 python3 解释器;
#!/usr/bin/env python3
这种用法是为了防止操作系统用户没有将 python3 装在默认的 /usr/bin 路径里。当系统看到这一行的时候,首先会到 env 设置里查找 python3 的安装路径,再调用对应路径下的解释器程序完成操作。
#!/usr/bin/python3
相当于写死了 python3 路径;
#!/usr/bin/env python3
会去环境设置寻找 python3 目录,推荐这种写法。
taobao IP 接口
sublime使用的一些配置
1,显示不可见字符
"draw_white_space": "all"
2,tab换成空格
// The number of spaces a tab is considered equal to
"tab_size": 4,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": false,
// If translate_tabs_to_spaces is true, use_tab_stops will make tab and
// backspace insert/delete up to the next tabstop
"use_tab_stops": true,
ESXi频繁报错sda: failed to get
Jan 25 15:19:57 主机名 multipathd[583]: sda: failed to get udev uid: Invalid argument
Jan 25 15:19:57 主机名 multipathd[583]: sda: failed to get sysfs uid: Invalid argument
Jan 25 15:19:57 主机名 multipathd[583]: sda: failed to get sgio uid: No such file or directory
在国外网站找到原因了。两种解决方案:
1, editing the VM configuration in ESXi
The resolution is to put
disk.EnableUUID = "TRUE"
to the virtual machine definition, i.e. into the *.vmx file or via Edit Settings -> Options tab -> General -> Configuration Parameters in ESX UI.
2, editing /etc/multipath.conf
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|sda)[0-9]*"
}
FROM
https://askubuntu.com/questions/1242731/ubuntu-20-04-multipath-configuration