EAFP in Python VS. LBYL in Java/C++
There are basically two error handling strategies:
Look Before You Leap (LBYL)
It's Easier to Ask Forgiveness than Permission (EAFP)
Consider these two snippets(小段代码,Python):
# Look be
翻译
2013-10-28 21:43:50 ·
1346 阅读 ·
0 评论