37

习惯了静态类型语言,这两天写 Python ,每个函数开始时都带一坨 assert isinstance ....

 5 years ago
source link: https://www.v2ex.com/t/476799
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Python - @metorm - 写的是一个简单的物理仿真计算程序。这算好习惯还是坏习惯?养成这个习惯是因为有一次被 numpy 的 1x1 数组坑了好久……

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK