程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Is Python really that good?

編輯:Python

In the Jianghu , It has been circulating about Python The legend of ——Python omnipotent , Besides having children .
Python To have such a good name , Not only because of their own superiority , What's more, they can't do without the omnipotent libraries behind them .
today , Just let us know 5 paragraph Python library , See how they work in different fields ~

1.Pillow

Pillow yes PIL(Python Graphics library ) A branch of . For users ,Pillow More friendly , Through it, you can create thumbnails , Converting between file formats 、 rotate 、 Application filter , Display images, etc .
If you want to do Batch image processing , Pillow Is a necessary library .
stay Pillow In the library , There are more than twenty modules , It also supports many plug-ins . The most common one is Image Module with the same name Image class , Many other modules are in Image Based on the module, the image is further processed .

from PIL import Imageim = Image.open("picture.jpg")new_im = im.convert("L")print(new_im.mode)new_im.show()

2.PyTorch

PyTorch It's based on Torch Of Python Open source machine learning library , For natural language processing applications .
It is mainly composed of Facebook The AI team developed , Not only can you achieve powerful GPU Speed up , It also supports dynamic neural networks , This is now many mainstream frameworks, such as TensorFlow Not supported .
PyTorch Provides Two advanced features
1. With powerful GPU Accelerated tensor computation ;
2. A deep neural network with an automatic derivation system , except Facebook outside ,Twitter、GMU and Salesforce And other institutions have adopted PyTorch.

3.Colorama

One “ Rich and colorful ” Module ——Python Of Colorama modular . It can span multiple terminals , Display different colors and backgrounds of Fonts , Just import colorama The module can , You don't have to look like linux Same color designation .

  • Fore : Used to change the color of the output text ;

  • Style : Used to change the brightness of the output text ;

  • Back : Used to change the background of the output text . Colorama Support 8 Color : black (black)、 Red (red)、 green (green)、 yellow (yellow)、 Blue (blue)、 Magenta (magenta)、 Cyan (cyan)、 white (white).

from colorama import Fore, Back, Styleprint(Fore.RED + 'some red text')print(Back.GREEN + 'and with a green background')print(Style.DIM + 'and in dim text')print(Style.RESET_ALL)print('back to normal now')

About Python Technology reserve

Learn from good examples Python Whether it's employment or sideline, it's good to make money , But learn to Python Still have a learning plan . Finally, let's share a complete set of Python Learning materials , For those who want to learn Python Let's have a little help !

One 、Python Learning routes in all directions

Python The technical points in all directions are sorted out , Form a summary of knowledge points in various fields , The use of it is , You can find the corresponding learning resources according to the above knowledge points , Make sure you learn more comprehensively .( At the end of the article !)

reminder : Limited space , Packaged folder , The way to get it is “ At the end of the article ”!!!

Two 、Python Essential development tools

3、 ... and 、Python Video collection

Watch the zero basics learning video , Watching video learning is the quickest and most effective way , Follow the teacher's ideas in the video , From foundation to depth , It's still easy to get started .

Four 、 Practical cases

Optical theory is useless , Learn to knock together , Do it , Can you apply what you have learned to practice , At this time, we can make some practical cases to learn .

5、 ... and 、Python Exercises

Check the learning results .

6、 ... and 、 Interview information

We learn Python Must be to find a well paid job , The following interview questions are from Ali 、 tencent 、 The latest interview materials of big Internet companies such as byte , And the leader Ali gave an authoritative answer , After brushing this set of interview materials, I believe everyone can find a satisfactory job .

This full version of Python A full set of learning materials has been uploaded CSDN, Friends can scan the bottom of wechat if necessary CSDN The official two-dimensional code is free 【 Guarantee 100% free

author : Uncle Wang lives next door

Game programming , A game development favorite ~

If the picture is not displayed for a long time , Please use Chrome Kernel browser .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved