分享兴趣,传播快乐,增长见闻,留下美好!

少年易老学难成,一寸光阴不可轻。


python 辅助 python 辅助香精开发_Python

关于Python

python 辅助 python 辅助香精开发_python_02

Python由荷兰数学和计算机科学研究学会的GUIdo van Rossum 于1990 年代初设计,作为一门叫做ABC语言的替代品。Python提供了高效的高级数据结构,还能简单有效地面向对象编程。Python语法和动态类型,以及解释型语言的本质,使它成为多数平台上写脚本和快速开发应用的编程语言,随着版本的不断更新和语言新功能的添加,逐渐被用于独立的、大型项目的开发。

Python强大的库函数

Python拥有一个庞大,且还在不断拓展的标准库。它可以帮助处理各种工作,包括正则表达式、文档生成、单元测试、线程、数据库、网页浏览器、CGI、FTP、电子邮件、XML、XML-RPC、HTML、WAV文件、密码系统、GUI(图形用户界面)、Tk和其他与系统有关的操作。这被称作Python的“功能齐全”理念。除了标准库以外,还有许多其他高质量的库,如wxPython、Twisted和Python图像库等等。

第三方 Python 库

1.NumPy库的基本使用

(1)对于 random 函数,主要用于产生随机数;

(2)对于 array 函数,主要用于产生指定的数组类型的数据;

(3)对于 arange 函数,主要用于产生指定的数组类型的数据。

python 辅助 python 辅助香精开发_python_03

输出结果:

python 辅助 python 辅助香精开发_后端_04

2、Pandas库的基本使用

(1)利用 Series 库生成随机数的 Series 类型数据,将字典强制转化 Series 数

据;

(2)利用 Dataframe 库将字典强制转化为 Dataframe 类型数据,并可以调用自带

函数查看数据的行列索引。

python 辅助 python 辅助香精开发_开发语言_05

输出结果:

python 辅助 python 辅助香精开发_Python_06

python 辅助 python 辅助香精开发_开发语言_07

英文翻译

The English translation

Share interests, spread happiness, increase knowledge, leave beauty! Dear, this is LearningYard School. Today the editor brings you:

Python and its library functions——Pandas

About the Python

Python was designed in the early 1990s by Guido van Rossum of the Dutch Institute for Mathematical and Computer Science research as an alternative to a language called ABC. Python provides efficient high-level data structures, as well as simple and efficient object-oriented programming. Python syntax and dynamic typing, as well as the nature of the interpreted language, make it a programming language for scripting and rapid application development on most platforms. As versions continue to be updated and new features are added to the language, it is increasingly being used for independent, large project development.

Python’s powerful library functions

Python has a large and growing standard library. It can help with a variety of jobs, including regular expressions, document generation, unit testing, threading, databases, Web browsers, CGI, FTP, E-mail, XML, XML-RPC, HTML, WAV files, password systems, GUIs (graphical user interfaces), Tk, and other system-related operations. This is called Python’s “full-featured” idea. In addition to the standard library, there are many other high-quality libraries, such as the wxPython, Twisted, and Python image libraries, to name a few.