Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
江湖流传“动态类型一时爽,代码重构火葬场”:angry_face_with_horns: Python作为动态语言在定义变量、函数返回值、方法参数都不需要指定数据类型,开发起来觉得没有牵绊,很爽。但是这也往往导致了无从躲避的Runtime Error.
Mypy是一个静态类型检查器,就是在你的代码执行前他可以通过类型推导配合你在代码中的类型标注检查可能的类型错误。让你的代码更加安全可靠。
谢谢分享,言简意赅