12 Python Snippets ที่ช่วยเพิ่ม Productivity ของคุณ

12-พ.ค.-21

คัมภีร์เทพ IT

บทความนี้เป็นของคุณ Lucas Soares ที่เขียนขึ้นมาเพื่อแชร์ Python Snippets ซึ่งน่าจะมีประโยชน์กับเหล่า Programmer คนอื่น ๆ ที่จะลองนำเอาไปประยุกต์ใช้งาน เรามาดู 12 Python Snippets ที่ช่วยเพิ่ม Productivity ของคุณ กันได้เลย

1. How to get combinations of n numbers in a list

2. How to get computer information on a windows machine

3. How to write a simple gaussian kernel

4. How to get a list of colors in seaborn

5. How to get the most frequent elements from a list with Counter

6. How to plot a 3D surface of the softmax function

Output:

image by author

 

7. How to write a gaussian white noise stimulus vector

8. How to get the memory size of globals() output in GB

9. How to interleave lists

10. How to make fake cluster data

Output:

image by author

 

11. How to place a label outside of a plot in matplotlib

Output:

image by author

 

12. How to put a rectangle on a plot in matplotlib

Output:

image by author

 

หวังว่า Python Snippets เหล่านี้ คงจะมีประโยชน์กับคุณ ซึ่งคุณสามารถนำพวกมันไปประยุกต์ใช้ในการทำงานจริงของคุณได้

ที่มา:  https://python.plainenglish.io/

 

 

รับตำแหน่งงานไอทีใหม่ๆ ด้วยบริการ IT Job Alert

 

อัพเดทบทความจากคนวงในสายไอทีทาง LINE ก่อนใคร
อย่าลืมแอดไลน์ @techstarth เป็นเพื่อนนะคะ

เพิ่มเพื่อน

 

บทความล่าสุด