[dream open class] zero foundation playing with Python basics — Section 1: Python’s self introduction

Time:2022-1-6

πŸ“’πŸ“’πŸ“’πŸ“£πŸ“£πŸ“£

Hello, everyone. My name is dream. I’m an interesting Python blogger. Please take care of me
CSDN is a high-quality creator in Python field and is a sophomore. Welcome to find me for cooperative learning (VX wants to enter the learning exchange group or learning materials at the end of the article. Welcome + + +)
πŸ’•Introduction note: this paradise is never short of genius, and hard work is your final admission ticket!
πŸ’“Finally, may we all shine where we can't see and make progress together
“Ten thousand times sad, there will still be dream, I have been waiting for you in the warmest place”, singing is me! Ha ha ha~
🌟🌟🌟✨✨✨

preface:[dream open course] series of courses are a complete set of courses for Python Introduction & advanced. If you like it, please hurry to collect and subscribe~
【 group report for heating 】
If you don’t have self-control or motivation to learn and communicate together, you are welcome to send a private letter or add my VX at the end of the text. I will pull you into the learning and communication group. We will communicate and study together and punch in the group
There are many more benefits in the group waiting for you to unlock. Join us quickly!

What’s new, I knew:

1. Learning objectives – know in advance

β˜€οΈβ˜€οΈβ˜€οΈ A lofty goal, as long as unswervingly pursued, will become a feat!

  1. understandPython development history, characteristics and application fields
  2. understandPython program execution principle
  3. understandPycharm writes simple Python programs
  4. masterConfiguration of Python development environment

two ️⃣ Learning task – I can do it

Poor and strong, don’t fall into the ambition of green clouds!

01 know Python

Origin of Python:

—-Python was founded by Guido of the Netherlands—-
In 1989, Guido decided to develop a new script interpreter as an inheritance of ABC language in order to kill the boredom of Christmas. Python was chosen as the name of the programming language because he is a fan of a comedy group called Monty Python.

Python features:

(ten characteristics)

  1. Easy to learn
  2. Easy to read
  3. Easy maintenance
  4. Powerful standard library
  5. Interactive mode
  6. Portable
  7. Extensible
  8. Database operation
  9. GUI programming
  10. Embeddable

Python applications:

  • Web development domain

[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

  • Automation script for operating system management and server operation and maintenance
    [dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction
  • Scientific computing
    [dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction
  • Desktop applications
    [dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction
  • Server software (network software)

[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

  • game

[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

Python development:

Up to December 2021, Python is also the most popular language in the world, and has been on the rise. It can be said that the development of Python in the future is unlimited!
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

Python version

[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

Python2. X and python 3 X difference:

  1. The print function replaces the print statement
  2. python3. X uses UTF-8 encoding by default, and the difference is clear at a glance:
    [dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction
  3. Division operator/

In short, only when the divisor and dividend of Python 2 have a decimal part, the result will have a decimal part, otherwise it will only be rounded, while Python 3 has no such limitation.
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction
4. Abnormal[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

5. Octal literal represents 0b \ 0o \ 64 \ 0x
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

6. Inequality operator
Simply put, there is no < > sign in Python 2 in Python 3. In Python 2, it means that there is data between two numbers, which is both greater than the data on the left and less than the data on the right.[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction7. Data type[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction
This is the difference between long type and int type. Please refer to:
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

02 Python installation and integrated development environment – pycharm

Python installation and integrated development environment pycharm * * will not be repeated here. In this blog, I have made the introduction and selection of Python version very clear! For your reference:
Starting from the whole network, an article takes you into the world of pycharm – don’t ask me about pycharm installation and environment configuration!!! Ten thousand words just smile for you. Collect them quickly!

03 IPython interactive interpreter

What is IPython

—-IPython is an interactive interpreter—-
1. The performance of IPython is better than that of standard Python shell.
2. IPython supports automatic variable completion and indentation, supports bash shell commands, and has built-in many useful functions and functions.
3. Run the script with the% run command.
4. Use the% timeit command to quickly measure the code running time.

Installation and use of ippython

—-Console input command:pip install ipythonAutomatic installation—-
Enter this command in CMD, and then display this commandRequirement already satisfiedCommand, it means that the installation has been successful.
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

1. Start IPython
Enter IPython to displayIn [1]::
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction2. Ippython automatic completion
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

04 Python program execution principle

The implementation principle of Python is actually very simple, which is one:source codeCompile intoBytecodeAnd then forward the compiled bytecode toPython virtual machine (PVM)A process performed in.
Here we will show you a simple flow chart to make you understand more:
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

three ️⃣ Summary of this chapter — it is difficult to know

Life is not only a journey, but also a journey; It is waiting and reunion; It is exploration and treasure hunt; Tears and songs!

First of all, let’s get to know Python and explain the development process, characteristics, application fields, python versions and the similarities and differences of different versions of Python; Then it explains the installation methods of Python on different platforms, then introduces the use of IPython and pycharm, and finally takes you to analyze the execution principle of Python program.
Through the study of this chapter, I hope you can have a preliminary understanding of python, and can independently complete the installation and basic use of Python development tools, so as to prepare for the later study of Python development.

4. Test the knife — receive benefits

πŸ“’πŸ“’πŸ“’Introduction to playing method:Here are some examples for this class. If you have any questions, please put them forward in the comment area. If you have ideas and ideas, you are welcome to give your opinions and answers in the comment area. Dream will take out two lucky partners to send a python reference book and a 6.6 yuan learning encouragement red envelope respectively according to the situation of everyone answering questions in the comment area in a month. Let’s discuss it in the comment area quickly~

πŸ’¬πŸ’¬πŸ’¬ Q: do you know the relationship between Python and pychar? πŸ‘»πŸ‘»πŸ‘»
Express your views and opinions in the comment area. Maybe the next winner is you. The answer will be announced in the next issue!

5. Write it at the end — surprise activities

Benefits 1

If you don’t have self-control or motivation to learn and communicate together, welcome to send a private letter or add my VX at the end of the text. I will pull you into the learning and communication group. We will communicate and study together, report to the group and punch in. There are many benefits in the group, waiting for you to unlock. Join us quickly!

Benefits 2

one ️⃣ The course is equipped with PPT [original copyright, infringement must be investigated]: if you want to get started with Python quickly, this detailed ppt can quickly help you lay a solid foundation for Python. If you need it, you can download it
A complete set of Python introductory basic tutorials + Xiaobai quick success + learning won’t come to me!

two ️⃣ This is a confession artifact and Christmas tree made in Python. You need to get it yourself:
Python confession artifact, source code + analysis + various perfect configurations + romantic and novel
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction
3️⃣ Christmas tree confession source code + material + take it directly
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction

It’s dream. The blogger is participating in the selection of CSDN blog star in 2021! I hope you can support five stars! Thank you~

I look forward to your five-star praise – the entry of “blog star” in 2021. Blogger: it’s dream
Click above to vote ✌✌✌✌✌✌✌✌✌✌

Previous articles – good articles recommended

πŸ₯‡ 2021 between me and CSDN — from passers-by to a Wanfen Blogger
πŸ₯ˆ Python new year confession artifact – you deserve it
πŸ₯‰ Christmas is coming, how can there be no Christmas tree? Come and send her a special Christmas gift~

Well, that’s all I want to share with you today. See you next time! ✨ ✨ ✨
If you like, don’t save your one button three connections~
[dream open class] zero foundation playing with Python basics -- Section 1: Python's self introduction