In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Python version Python 2 or Python 3Python 2.x is an earlier version, Python 3.x is the current version Python 2.7 Python 2.x has more libraries than Python 3.x. Most Linux systems still have Python 2.x installed by default. The choice depends on the problem you are trying to solve. The deployment environment is not controllable, Python versions cannot choose themselves Some libraries do not yet provide support for Python 3.x. If you choose to use Python 3.x, you need to make sure that the library you want to use supports the new version.
Note: This course will use Python version 3.x
Python Environment and IDEPython Environment
Anaconda is a scientific computing software distribution that integrates a large number of commonly used extension packages, including more than 180 scientific computing packages such as conda and Python and their dependencies, and supports all operating system platforms. Download address: www.continuum.io/downloads
Installation package: pip install xxx,conda install xxx
uninstall package: pip uninstall xxx,conda uninstall xxx
Upgrade package: pip install upgrade xxx,conda update xxx
IDEJupyter Notebook:
Command: jupyter notebook
Anaconda comes with, no need to install a separate real-time view of the running process Basic web editor (local).ipynb File sharing can interactively record historical running results IPython:
Command: ipython
Anaconda comes with an interactive command-line Shell that doesn't require a separate Python installation to interactively record historical results and verify ideas in time Spyder:
Command: spyder
Anaconda comes with, no need to install separately completely free, suitable for users familiar with Matlab powerful, use a simple graphical interface development environment PyCharm: need to install yourself: https://www.jetbrains.com/pycharm/downloadPyCharm, JetBrains boutique, full platform support, not much explanation. Python 3.x features print() is a function, not a statement raw_input() input function, instead of input()Python 3 makes a clearer distinction between text and binary data. Text is represented by unicode and is of type str Binary data is represented by bytes (byte packet), a new data type bytes (byte packet) is added for bytes, which represents binary data and encoded text string with a prefix bytes in Python 3. Convert bytes to str str and encode str into bytes.
2. bytes can be decoded into str string format output mode: new format() mode dict type change
Iterkeys(), itemvalues (), itemitems () changed to keys(), values(), items()
GB2312: Chinese extension of ASCII GBK/GB18030: includes all the contents of GB2312, and adds nearly 20000 new Chinese characters and symbols Unicode: includes global symbols and codes. Each character is represented by 3~4 bytes, wasting space UTF-8: variable length encoding mode, the most widely used Unicode implementation mode on the Internet, according to the language to determine the length of the character, such as a Chinese character 3 bytes, a letter 1 byte, is also the default encoding format under the Linux environment.
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.