This really reinforces some lines from The Zen of Python: 显式优于隐式. 可读性计数. 面对模棱两可的想法,拒绝猜测的诱惑. 应该有一种-最好只有一种-显而易见的方法. Explicit is better than implicit. Readability counts. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it.(我包括可读性,因为显式类型提示比潜在的隐式分配要容易得多)(I include readability because the explicit type hint is a lot easier to read then a potentially buried assignment) 这篇关于PyCharm无法识别字典值类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-28 13:53
查看更多