-
Python is an object-oriented interpreted language, and object-orientation is a very important feature. "Object-Oriented Programming in Python 3" shows the concepts and principles of object-oriented in Python through the data structure, syntax, and design patterns of Python, from simple to complex, from elementary to advanced, step by step.
-
Whether it's learning any language, basic knowledge is very important, learning python development, you can go to [Pete Collector] that ** tutorial, you can talk about it.
-
For novices, I think it's more appropriate to look at the MOOC network, there are many basic points above, and you can watch it slowly.
-
Learning python development is the ideal choice for everyone to enter the world of programming. Whether it is learning any language, basic knowledge, is the basic skills are very important, find a teacher or brother with rich programming experience with you will take a lot of detours, your progress will be much faster, no matter what the purpose of our learning is, I have to say that python is really an excellent programming language worth your time to learn. When choosing training, we must compare teaching, teachers, projects, employment, etc., and choose carefully.
In order to get a better introduction to Python, the following tutorials have been summarized for you to learn.
-
There are two kinds of portal division, the result of the former will be a decimal if it is not divided, and the result of the latter will be an integer, and the result must be an integer. But this divisibility is rounded down, and it's a bit weird, and it's different from CPP. Specifically:
When the result is a positive integer, Python is consistent with CPP, but when the result is negative, then Python is really "rounded down", as illustrated below:
To get the result of cpp, that is, the absolute value is rounded down, you can use int() to force it.
There are two definitions of remainders, and there is a difference between the remainder in the computer field and the remainder in mathematics.
But in CPP, the above result is: A=1, B=-1, C=-1Because the quotient is 0.
Summary: The remainder operation is directly related to the calculation of the divisible. Therefore, in order to achieve a result similar to CPP, Python should start with the calculation formula, calculate the whole number division of the friend pants fruit correctly, and then set the calculation formula to get the result, that is:
The bisect module implements an algorithm to insert elements into a list while still keeping the list orderly.
Use the help() method. For example, if you want to query the usage method of list, what are the functions?
-
1. In addition to being familiar with the language itself, python development also requires mastering a lot of related skills, such as playing the NBA, you not only have to learn how to shoot, but also practice a whole set of things such as strength, skills and tactics. Therefore, the skills that an ordinary Python web development engineer needs to master include at least one web framework, such as: Django, Flask, Tornado, and the business system is inseparable from the support of the database, in addition, it is also necessary to understand the basic operations and common commands of the Linux system, because in the future, the program you write will basically run on the Linux platform.
2. Many novices are always entangled in whether to learn python2 or python3, just like having buns and steamed buns in their hands at the same time, and don't know which one to eat first, this kind of entanglement is completely in vain, because they are the same language, only a small number of local grammar is incompatible, although most companies are still using python2, but python3 has gradually become the mainstream is an indisputable fact, after all, the latter has more advantages in terms of performance, and the official is also pushing python3. So don't hesitate to choose python3, it will take you a day at most to understand the unique content of python2.
3、Development tools,If you want to do a good job, you must first sharpen your tools,IDE (device) for python development emerges in endlessly,Recommend pycharm and sublime,Both tools can be used for free,And their learning cost is very low,Find a tutorial on the Internet and read it basically to be able to attack the hand,vim、EmacsSuch ancient artifacts or put them to understand later。 In addition, 90% of the problems you will encounter in the future will likely be solved by Google and Stackoverflow.
4. Learning resources, there are a variety of online entry resources, and a good book can guide you through the maze. But don't be fooled by the title, you can't learn a language in a few minutes, so you need to choose a tutorial that is suitable for getting started.
-
Recommend "Python Programming: From Beginner to Practice". The language of this book is easy to understand, and the examples are abundant, so you can understand it even if you have no foundation.
A few tips for learning python and other books:
1. If you don't know anything about Python, then please choose this book: Learn Programming with Kids (Hello World!).: computer programming for kids and other beginners)》
2. If you have little to no foundation, but you don't have any problems with the time, and you just want to master the full range of skills, then choose these two books: Learn Python 3 The Hard Way and The Python Tutorial
3. If you still have a good foundation and a lot of time, and want to learn more comprehensively, you may wish to take a look at this book: "Think Python: How to Think Like a Computer Scientist".
4. If you are reading the article and you have almost mastered the basic knowledge of python and want to learn deeper knowledge and skills, then it is a good choice to check out this book: "Python Cookbook".
5. Have mastered basic python programming, have a certain English reading ability, not bad money (can buy English original books), and hope to learn more python projects: "Python Playground: Geeky Projects for the Curious Programmer".
6. Have a certain programming foundation, have a certain English reading ability, not bad money (can buy English original books), have more time, and hope to learn more comprehensively: "Fluent Python: Clear, Concise, and Effective Programming".
In the process of self-learning programming, some programmers encountered cold English letters and boring programming tutorials, and decisively chose to give up. In fact, it is not so difficult to learn programming by yourself, as long as you are a science and engineering student and a partner with good logical thinking, you can get started with programming.
-
Many friends want to learn python, so how should python get started?
02 In addition, after the installation of the python software is completed, there are many ways to install the device, so if you don't know, you can ask a friend.
04 Remember, if you want to learn Python, the best way is not to study it behind closed doors, but to communicate with others so that you can know a better way to learn.
-
If you want to learn a language, you must first learn the basics well, just like when we just start learning Chinese, the first thing we start learning is letters, pinyin, characters, words, and then sentences, learning to use sentences to communicate with people.
When learning anything, interest is the most important, you can find some interesting case exercises when studying, maintain our interest in learning, and learn to endure loneliness and boredom, and persevere in learning!
You can find a systematic tutorial. Learn the basics first, and then find some interesting case exercises, if you are tired of learning in this way, you can learn in another way, first find some cases that you are interested in, see how others write, imitate writing, encounter knowledge points that will not be known, and then go to targeted learning!
As for the learning materials and cases on the Internet, there are a lot of them, if you want to save time, the blogger here recommends a set of good python tutorials. Contains a complete learning outline and project cases, interested partners can take a look.
A full set of python tutorials.
-
Self-study,Personally, it is not recommended to read books by yourself (in the case of python as the first programming language),You can go to station b to search for python tutorials,a lot,If you really want to read books,I recommend "Computer Grade Exam Level 2 - Python Language Programming", which is quite clear, but you have to have a little mathematical foundation (to learn computers), but there are a few words in the book that cannot be understood, you can match or B station to understand qwq
-
You can learn about it in the following tutorial.
Python Programming: From Beginner to Practice
This course introduces the basic concepts you need to know to program in Python, including powerful Python libraries and tools such as matplotlib, numpy, and pygal, as well as lists, dictionaries, if statements, classes, files and exceptions, tests, etc., and puts theory into practice by explaining project development.
head-first python (2nd edition)》
This paper introduces the only way to dynamically store data in Python, builds Python-based web servers and web applications, writes mobile applications on the Android platform, and uses PyGame and Pykyra to develop complex games.
Stupid method "learn python".
Covers inputs and outputs, variables and functions, as well as conditional judgments, loops, classes and objects, tests and project implementations, etc.
Python Programming (3rd Edition).
Introduction to the basics of computers and programs, writing simple programs, numerical calculations, objects and graphics, string processing, etc. functions, judgment structures, cyclic structures, and Boolean values, etc.; Simulation & Design, Classes, Data Collection, Object-Oriented Design, Algorithm Design & Recursion, etc.
Think Like a Computer Scientist in Python (2nd Edition).
Starting with basic programming concepts, the reader will be guided through the process of learning variables, expressions, statements, functions, and data structures, as well as how to work with files and databases, how to understand objects, methods, and object-oriented programming, and how to use debugging skills to fix syntax, runtime, and semantic errors.
-
Python3 and python2 are incompatible, and the differences are quite large.
In fact, Python is one of the most commonly used software on Linux, but most of the current versions of Linux still use Python2, and there are more programs that rely on Python2 on Linux, so it will take a few years for Python3 to replace Python2 and become mainstream.
The original purpose of designing python3 was to improve python without the baggage of compatibility, but I personally think that the improvement is not drastic enough, some bugs have not been completely improved, and there are many warts who have missed the opportunity to improve, so the syntax incompatibility caused by it is not as many as originally thought.
People have been groping for a few years and slowly coming down, and in most cases, they can directly write 2 3 compatible **, and there are also six such as the Anna compatible layer available.
So it's not a problem to learn python2 or python3 first, or it's a problem.
The current situation is that most of the practical applications do not consider python3 for the time being, and sometimes pay attention to writing compatible with 2 3 **. When writing new with python2 as the mainstay, consider the possibility of migrating to python3 in the future.
It is recommended to study the Python Tutorial
Whether you're learning Python2 or Python3, you need to pay attention to the other side of the difference: luckily, these differences are easy to grasp, and there is only one unicode encoding
Causing a lot of trouble for many people (and also a major obstacle to the porting of many web-related libraries in Stove Qin, re-support you'', the situation has improved considerably) Learn python2 still.
Python3, whether to use python2 or python3 depends on the situation.
So it is advisable to:1If you need to use python and learn python in an enterprise, you need to look at the version of python applied by the enterprise.
3.If you are a university student, then I recommend you to learn python 3, and by the time you graduate, python may have become mainstream.
Python training goes to Danet education well. >>>More
Summary. Hello dear, it is a pleasure to serve you <>
Beginners studying medicine should read the book "Bo Shining's General Medical Lecture Notes". 1.Bo Shining, the author of "Bo Shining's General Medical Education Handout", is a doctor of medicine from Peking University and has worked in the Department of Medicine of Peking University Third Hospital for 18 years. >>>More
The difference between a DSLR and a single electric **).
DSLR: Having a reflector that can be raised and lowered so that you can see it by removing the lens, using an optical viewfinder. >>>More
Basic plan: **Choose Flying Thunder derivation, customize all attributes. >>>More
Nowadays, the most popular is the Android intelligent system,Nokia smartphones will not be recommended to you because they are too outdated and not smart enough,I will recommend a powerful Android system to you,Huawei C8800 The inch screen of the main screen is very cool to play games and watch movies,Resolution480x800It is the mainstream resolution,The screen is very clear,The latest system of Android,300,000 massive software for you**,CPU800HMZ play games to be enough for large games, no problem, 5 million pixel LED flash to take pictures often good, the main building of this mobile phone to the very good ** only about 1300 if other mobile phones such a configuration at least about 1800, I am now using very good to use, very powerful, worth buying, thank you.