摘要: 1.1 错误处理的正确姿势 姿势一:失败的原因只有一个时,不使用error 我们看一个案例: func (self *AgentContext) CheckHostType(host_type string) error { switch host_type { case "virtual_mach 阅读全文
posted @ 2019-10-25 09:58 Python界-黄药师 阅读(558) 评论(0) 推荐(0) 编辑