Giter VIP home page Giter VIP logo

Comments (5)

qiwsir avatar qiwsir commented on August 26, 2024

其实,我在这个版本里面这么写不是很好。因为在python2里面,有新式类和旧式类之分。在python3中,没有这个区别,或者说都是新式类。python2中的新旧之别,是因为历史造成的。我在教程中,没有很好的区分和明确指出。这是我在第二版中会改正的部分。

from itarticles.

polyzy avatar polyzy commented on August 26, 2024

所以说,在python2里二者没有区别了是嘛?

from itarticles.

qiwsir avatar qiwsir commented on August 26, 2024

是python3里面没必要做这种区别。但是,目前我建议还是要学python2。详情请阅读我的教程https://github.com/qiwsir/StarterLearningPython/blob/master/03.md的末尾说明

from itarticles.

polyzy avatar polyzy commented on August 26, 2024

从您的回答里,我知道python3里class Person():和class Person:是没有必要区别的。
不好意思,可是我觉得您还是没回答我的问题:我现在用的python2,在python2里,加括号与不加括号到底有没有区别?还是说加不加括号没有影响?如果没有区别,您建议使用哪种?

from itarticles.

qiwsir avatar qiwsir commented on August 26, 2024

第一版在这里写的不好。请看我第二版。刚刚发布的。做了很大幅度的修改:https://github.com/qiwsir/StarterLearningPython/blob/master/207.md

from itarticles.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.