Comments (5)
其实,我在这个版本里面这么写不是很好。因为在python2里面,有新式类和旧式类之分。在python3中,没有这个区别,或者说都是新式类。python2中的新旧之别,是因为历史造成的。我在教程中,没有很好的区分和明确指出。这是我在第二版中会改正的部分。
from itarticles.
所以说,在python2里二者没有区别了是嘛?
from itarticles.
是python3里面没必要做这种区别。但是,目前我建议还是要学python2。详情请阅读我的教程https://github.com/qiwsir/StarterLearningPython/blob/master/03.md的末尾说明
from itarticles.
从您的回答里,我知道python3里class Person():和class Person:是没有必要区别的。
不好意思,可是我觉得您还是没回答我的问题:我现在用的python2,在python2里,加括号与不加括号到底有没有区别?还是说加不加括号没有影响?如果没有区别,您建议使用哪种?
from itarticles.
第一版在这里写的不好。请看我第二版。刚刚发布的。做了很大幅度的修改:https://github.com/qiwsir/StarterLearningPython/blob/master/207.md
from itarticles.
Related Issues (16)
- 建议:给每个小节加入前一节和后一节的链接 HOT 1
- BasicPython 系列可以单开一个repo HOT 1
- Ipython HOT 1
- 程序错误(205.md) HOT 1
- 希望整理成gitbook形式,便于阅读。 HOT 5
- 醉了
- gcc到4.8.1 Connection timed out Giving up. HOT 1
- 关于orm
- 一个小错误
- 第一部分,21
- 关于理解变量 HOT 4
- paradigmsDIAGRAMeng108_CN.zip文件下载不了 HOT 1
- pyrhon
- BasicPython的错别字/勘误就在这里提出吧 HOT 12
- 准备把你的几篇文章收入:https://github.com/justjavac/free-programming-books-zh_CN HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itarticles.