有没有理由把代码放在Python的docstring之前? 2019年8月3日 pep 0条评论 80次阅读 0人点赞 我在其他人的 Python代码中看到他们在函数的docstring之前粘贴了一些检查;这样的事情: def func(args): if x_version != 1.7: return """docstring is …