阅读背景:

我应该何时使用课程,何时应该使用某个功能?

来源:互联网 

When is a class more useful to use than a function? Is there any hard or fast rule that I should know about? Is it language dependent? I'm intending on writing a script for Python which will parse different types of json data, and my gut feeling is that I should use a class to do this, versus a function.When is a class more useful to use than a funct




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: