In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the basic knowledge of Python". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
#Python Basics
## Python Overview
- Computer language overview
- Language: a means of communication, a medium of communication
- Computer language: a tool for communicating with computers, a translator (i.e., an interpreter)
- Python is a computer language.
- Python programming language
- Code: 'human language', code to command computers, to communicate with computers
- Python interpreter: acting as a translator
- Process:
- Write code (according to a certain syntax)
- Execution-The command (code) is translated to the machine by the sense of translation (python interpreter), and the machine responds to the result to us.
- A brief history of Python
- 1989: Guido van Rossum
- 2008: Python 3.0 is born-incompatible with previous versions 2.X & 3.0
- 2014: Announced 2.7 support by 2020
- 2017: The first year of AI, Python rises
- Python Features
- speed issues
- Direction: Operation and Maintenance Data Analysis Artificial Intelligence
- selection problem
- Python application areas
- all-round development
- Design philosophy: balanced development, mastery of everything, simplicity and clarity
- environmental problems
- anacon + pycharm
- python3.6
- operating system
- windows
- Linux
- Macox
- ubuntu
- Python execution
Python is essentially a collection of commands.
·The execution process is executed line by line, and the problem is immediately terminated.
·Print Hello World
1 What is IDLE?
A: idle is a python shell, shell means 'shell', basically a way to interact with a program by typing text!
What is the function of print ()?
A: Format the output function, print () will display some text in the output window.
What is the symbol for multiplication in Python?
A: Multiplication is an asterisk *.
4. Why>>>print ('i love'*5) works correctly, but>>>print ('i love'+5) reports an error?
A: Because you can't put two completely different things together in Python, like numbers and text.
Multiplication is printing the preceding text five times.
5. If I need to embed a double quote in a string, what's the correct way to do it?
A: The first can be escaped with a backslash\.
Second, you can enclose the string in single quotes.
6. Why do we need Python 3? What's wrong with Python2, and why are so many people using it?
A: Programming syntax is more demanding. Characteristics are better.
IDLE shortcut keys
Alt + N Previous command
Alt + P Next command "What is the basics of Python" is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.