Use GPT to quickly understand python, master the knowledge context, and really use 3 days from giving up to getting started.

foreword

Use GPT to quickly understand python, master the knowledge context, and really use 3 days from giving up to getting started.

With zero contact with python, it really took 3 days to go from giving up to getting started.

This is for newcomers who want to learn python. Python is currently an important language related to CG image development. It is an important skill point of TA.

I didn't think about learning python in the near future, but the emergence of GPT seems to make the systematic learning of python simple and efficient, and it is much easier to get started.

GPT can quickly help us sort out the knowledge context and sort out experienced and important key information

Help us learn a new language quickly.

GPT can't directly help me generate an article of this length, which requires screening of questions and some hard work (waiting for its output, various disconnection and reconnection, each answer may be different, cross-validation is required) so this note It can still help those students who have difficulty using GPT, or find it troublesome to screen and wait.

After reading the compilation of AI, you may indeed understand these problems. You can also continue to ask questions about the points you don't understand. Such a good teacher really subverts the learning process, but both GPT and I may make mistakes, please verify and cross-validate by yourself, and welcome to correct me if there are mistakes. In terms of python, there are many big guys who are better than GPT, but only GPT can answer your questions so patiently in the world.

The goal of learning Python, what problem to solve?

Let's first take a look at what is our goal in learning Python? This is the most fundamental problem. If there is no interest and motivation

Even the best teacher can't help you

img

[----Help Python learning, all the following learning materials are free at the end of the article! ----】

Let GPT sort out the key questions

Let GPT help you sort out the important questions first, and keep asking and asking until it seems that it sums up these questions like that

So far, I have selected more than 30 questions here, and then asked them one by one

img

Sort out the key issues for a quick understanding of python

  1. How to declare and use variables in Python?
  2. What are the data types in Python?
  3. What are some frequently asked questions about the Python command line? What is the Python interpreter?
  4. How to use a loop statement (for/while) to repeatedly execute a piece of code?
  5. What is the difference between lists and tuples in Python?
  6. How to use dictionaries and collections to manage data?
  7. How to define and call functions?
  8. What is functional programming in Python? How to write Python code using functional programming concepts and techniques?
  9. What are modules in Python? How to use modules to extend functionality?
  10. How to use Python's built-in exception handling mechanism to handle errors and exceptional conditions?
  11. What are decorators in Python? How to use decorators to enhance the functionality of functions?
  12. How to write Python code using object-oriented programming (OOP) concepts such as classes, inheritance, and polymorphism?
  13. What are Generators and Iterators in Python? What are the different among its? How to create and use them?
  14. How to use Python's built-in advanced data structures, such as heaps, double-ended queues, named tuples, etc. to process complex data?
  15. How to use Python's multi-thread and multi-process functions to achieve concurrent programming and improve program performance?
  16. What are coroutines in Python? How to use coroutines to write asynchronous code?
  17. How to use the standard library and third-party libraries in Python to extend the functions of Python and solve various practical problems?
  18. How to use the file manipulation functions in Python to read and write files, manage the file system and process data?
  19. How does Python write a crawler that grabs the latest content of a website?
  20. How to use regular expressions in Python for text matching and processing?
  21. What is memory management in Python? How to use garbage collection mechanism to manage memory?
  22. How to use concurrency frameworks in Python such as Twisted, Tornado, and Asyncio for asynchronous programming?
  23. What is functional parallel programming in Python? How to use multiprocessing library to achieve functional parallel programming?
  24. What is network programming in Python? How to use sockets (socket) to implement network applications?
  25. How to use the graphical interface library (GUI) in Python to develop desktop applications?
  26. How to use Python for scientific computing and data analysis? Examples include using libraries such as NumPy, Pandas, and Matplotlib.
  27. How to develop web applications using Python, such as using web frameworks such as Django, Flask, and Pyramid?
  28. What are unit testing and integration testing in Python? How to use libraries such as unittest, pytest and mock to write test code?
  29. How to implement artificial intelligence applications using machine learning libraries in Python, such as Scikit-learn and TensorFlow?
  30. How to use encryption and security features in Python to keep data and network safe?
  31. How to use natural language processing (NLP) libraries in Python, such as NLTK and spaCy, to process text data?
  32. How to use distributed system frameworks in Python, such as Celery and Dask, for distributed computing?
  33. How to use big data processing tools in Python, such as Hadoop and Spark to process massive data?
  34. How to use image processing libraries in Python, such as Pillow and OpenCV, to process image data?
  35. What is Deep Learning in Python? How to use libraries such as Keras and PyTorch to implement deep learning applications?
  36. How to use automated testing frameworks in Python, such as Selenium and Appium, etc. to implement automated testing?
  37. How to use blockchain development libraries in Python, such as web3.py and pyethereum, etc. to develop blockchain applications?
  38. How to use audio processing libraries in Python, such as pydub and librosa, etc. to process audio data?
  39. What are the characteristics and differences between the graphics processing library Pillow library and the openCV library?
  40. How to write a modeling plug-in for Blender with python, what knowledge points are needed?
  41. Give me a description of 10 questions about python writing practical functions in Houdini
  42. How to use Python scripts to extend the functionality of Houdini, such as adding new nodes, tools, plug-ins, etc.?
  43. Use python to implement a node for Houdini, create a spiral staircase, and the number and height of the stairs can be set.
  44. Regarding the basic knowledge of python's three-dimensional geometric mathematics and the functions that can be realized, you give me 10 representative questions.
  45. Write an automatic surface reduction LOD tool in python, output 3 LOD levels, and the number of surfaces at each level is controllable
  46. How to use automated deployment tools in Python, such as Fabric and Ansible, for automated deployment and operation and maintenance management?

Help understand various concepts and libraries of python

GPT's current output efficiency is not high

It requires a certain amount of waiting and patience, as well as a certain knowledge structure

We can first understand various concepts, ideas and rules of various problems from various problems

What problems are dealt with by various libraries, and when encountering a certain problem, continue to learn and use this library directly

A general understanding also helps us understand the code faster

1- How to declare and use variables in Python?

img

2- What are the data types in Python?

  1. Integer (int): Indicates an integer, such as 1, 2, 3, etc.
  2. Floating point number (float): represents decimals, such as 1.2, 3.14, etc.
  3. Boolean value (bool): Indicates true or false, only two values ​​True and False.
  4. String (str): represents text, such as "hello", "world", etc.
  5. List (list): Represents a collection of ordered elements, which can contain elements of different types, such as [1, 2, "hello"].
  6. Tuple: Represents a collection of ordered elements, which can contain elements of different types, but cannot be modified once created, such as (1, 2, "hello").
  7. Set (set): represents a collection of unordered elements, does not contain repeated elements, such as {1, 2, 3}.
  8. Dictionary (dict): represents a set of key-value pairs, each key corresponds to a value, such as {"name": "Tom", "age": 18}.

In addition, there are some other data types, such as files (file), functions (function), etc., but these are usually not called basic data types.

3- What are the commonly used commands on the Python command line? What is an interpreter?

The Python command line provides some commonly used commands, the following are some common commands:

  1. help(): Enter the help interface, you can view the documentation and usage of Python built-in functions.
  2. dir(): List all names (variables, functions, etc.) defined in the current scope.
  3. quit() or exit(): exit the Python interpreter.
  4. Ctrl+Z or Ctrl+D: Exit the current input, return to the previous command line or exit the Python interpreter.
  5. history: Displays the current command history.
  6. clear: Clear the command line interface.
  7. print(expression): Print the value of the specified expression.
  8. input(prompt): Read user input from standard input and return a string.
  9. execfile(filename): Execute the specified Python script file.
  10. open(filename, mode): Open the specified file and return the file object.

These commands can help us use the Python command line more conveniently for debugging, testing, teaching, etc. In addition, you can extend the functionality and interactivity of the Python command line by using Python's third-party libraries, such as IPython and bpython.

A Python interpreter is a program that can read, interpret, and execute Python code. The Python interpreter converts Python code into machine language that the computer can understand and executes it on the computer.

Python has a variety of interpreters to choose from, including:

  1. CPython: The official interpreter written in C and the most commonly used Python interpreter.
  2. Jython: A Python interpreter running on the Java virtual machine.
  3. IronPython: A Python interpreter running on the .NET framework.
  4. PyPy: A Python interpreter implemented using JIT (Just-In-Time) technology, with faster execution speed.

In addition to these common interpreters, there are several other Python interpreters for specific purposes or platforms.

The Python interpreter provides an interactive environment, called the Interactive Interpreter (Interactive Interpreter), which allows users to enter Python code and see the results immediately. In addition to the interactive environment, the Python interpreter can also execute Python code by running scripts (Script).

4- How to use a loop statement (for/while) to repeatedly execute a piece of code?

In Python, you can use for loop and while loop to execute a piece of code repeatedly.

  1. for loop:

img

img

5- What is the difference between lists and tuples in Python?

img

6- How to use dictionaries and collections to manage data?

img

img

img

7- How to define and call a function?

img

8- What is functional programming in Python? How to write Python code using functional programming concepts and techniques?

img

img

9- What are modules in Python? How to use modules to extend functionality?

img

img

10- How to use Python's built-in exception handling mechanism to handle errors and exceptional conditions?

img

img

11- What are decorators in Python? How to use decorators to enhance the functionality of functions?

In Python, a decorator is a way to enhance the functionality of a function without modifying its source code. A decorator is essentially a function that takes a function as an argument and returns a new function. Additional logic can be added in the decorator, such as timing, logging, input parameter validation, etc.

Here's an example of using a decorator to enhance a function:

img

12- How to write Python code using object-oriented programming (OOP) concepts such as classes, inheritance, and polymorphism?

img

13- What are generators and iterators in Python? What are the different among its? How to create and use them?

img

14- How to use Python's built-in advanced data structures, such as heaps, double-ended queues, named tuples, etc. to process complex data?

img

img

15- How to use Python's multi-thread and multi-process functions to achieve concurrent programming and improve program performance?

img

16-What is a coroutine in Python? How to use coroutines to write asynchronous code?

img

17- How to use the standard library and third-party library in Python to extend the functions of Python and solve various practical problems?

img

18- How to use the file operation function in Python to read and write files, manage file system and process data?

img

19-Python How to write a crawler that grabs the latest content of a website?

img

20- How to use regular expressions in Python for text matching and processing?

img

img

21- What is memory management in Python? How to use garbage collection mechanism to manage memory?

img

22- How to use concurrency frameworks in Python such as Twisted, Tornado and Asyncio to achieve asynchronous programming?

img

23- What is functional parallel programming in Python? How to use multiprocessing library to achieve functional parallel programming?

img

24- What is network programming in Python? How to use sockets (socket) to implement network applications?

img

25- How to use the graphical interface library (GUI) in Python to develop desktop applications?

img

26- How to use Python for scientific computing and data analysis? Examples include using libraries such as NumPy, Pandas, and Matplotlib.

img

27- How to develop web applications using Python, such as using web frameworks such as Django, Flask, and Pyramid? 27-

img

28- What are unit testing and integration testing in Python? How to use libraries such as unittest, pytest and mock to write test code?

img

29- How to use machine learning libraries in Python, such as Scikit-learn and TensorFlow, to implement artificial intelligence applications?

img

30- How to use encryption and security features in Python to keep data and network safe?

img

31- How to use natural language processing (NLP) libraries in Python, such as NLTK and spaCy, to process text data?

img

32- How to use distributed system frameworks in Python, such as Celery and Dask, for distributed computing?

img

33- How to use big data processing tools in Python, such as Hadoop and Spark to process massive data?

img

34- How to use image processing libraries in Python such as Pillow and OpenCV to process image data?

img

35-What is deep learning in Python? How to use libraries such as Keras and PyTorch to implement deep learning applications?

img

36- How to use automated testing frameworks in Python, such as Selenium and Appium, etc. to implement automated testing?

img

37-How to use blockchain development libraries in Python, such as web3.py and pyethereum, etc. to develop blockchain applications?

img

38 How to use audio processing libraries in Python, such as pydub and librosa, etc. to process audio data?

img

39-What are the characteristics and differences between the graphics processing library Pillow library and the openCV library?

img

40-How to use python to write a modeling plug-in for Blender, what knowledge points are required?

img

img

41-Give me a description of 10 questions about python writing practical functions in Houdini

  1. How to use Python to write scripts to automate some operations in Houdini, such as creating nodes, connecting nodes, setting attributes, etc.?
  2. How to write Python scripts to implement custom parameter interface, toolbar, menu and other user interface elements?
  3. How to use Python scripts to read and process geometric data in Houdini scenes, such as meshes, surfaces, curves, etc.?
  4. How to use Python scripts to implement custom geometric operations, such as deformation, subdivision, simplification, etc.?
  5. How to use Python scripts to implement custom rendering pipelines, such as renderers, shaders, lighting, etc.?
  6. How to use Python scripts to implement custom animation controllers, such as skeletal animation, key frame animation, etc.?
  7. How to use Python scripts to implement custom physical simulations, such as cloth simulation, fluid simulation, etc.?
  8. How to use Python scripts to realize data exchange between Houdini and other software, such as import, export, conversion, etc.?
  9. How to use Python scripts to extend the functionality of Houdini, such as adding new nodes, tools, plug-ins, etc.?
  10. How to use Python scripts to optimize the performance of Houdini, such as speeding up calculations, reducing memory usage, etc.?

It should be noted that Houdini is a very powerful 3D computer graphics software. Python is widely used in Houdini and can be used to implement various complex functions and expand Houdini's capabilities. In practical applications, it may be necessary to combine Houdini's node graph, VEX and other functions for development to achieve optimal results.

Randomly pick one that looks practical for the next question

42-How to use Python scripts to extend the functions of Houdini, such as adding new nodes, tools, plug-ins, etc.?

img

43-Implement a node for Houdini with python, create a spiral staircase, the number of steps and height of the staircase can be set.

img

44- Regarding the basic knowledge and achievable functions of python's three-dimensional geometric mathematics, you give me 10 representative questions.

  1. How to calculate the distance between two 3D points?
  2. How to calculate the modulus length, dot product, cross product and other basic operations of three-dimensional vectors?
  3. How to implement three-dimensional translation, rotation, and zoom transformation operations?
  4. How to calculate the position relationship of 3D points in geometry such as triangle, tetrahedron and sphere?
  5. How to calculate the intersection point of a line segment and a plane?
  6. How to tell if two triangles intersect?
  7. How to implement projection transformation and perspective transformation in 3D space?
  8. How to calculate properties such as normal vector and curvature of surface?
  9. How to simplify and subdivide the 3D mesh model?
  10. How to use 3D geometric mathematics to realize collision detection and physical simulation of 3D objects?

It should be noted that the above is only a part of the application of Python three-dimensional geometric mathematics. The application of three-dimensional geometric mathematics is very extensive, including computer graphics, robotics, virtual reality, game development and other fields. In practical applications, different methods and algorithms may need to be selected according to specific needs and domain characteristics.

45- Write an automatic surface reduction LOD tool in python, output 3 LOD levels, and the number of surfaces at each level is controllable

img

46-How to use automated deployment tools in Python, such as Fabric and Ansible, for automated deployment and operation and maintenance management?

img

1. Learning routes in all directions of Python

Just started learning python, if you don't even plan the complete learning steps, it is basically impossible to learn python. He sorted out all the directions of Python to form a summary of knowledge points in various fields.(The wife in the picture is too big. I can’t put it here. If you don’t have a full version, you can get it for free at the end of the article)

insert image description here

2. Getting started with a full set of learning videos

When we watch videos and learn, we can’t just move our eyes and brain without using our hands. A more scientific learning method is to use them after understanding. At this time, the hands-on project is very suitable.

insert image description here

Three, Python operation example

Learning python is the same as learning mathematics. You can’t just read the book without doing the questions. Looking directly at the steps and answers will make people mistakenly think that you have mastered everything, but you will still be at a loss when you encounter a problem.

Therefore, in the process of learning python, you must remember to write more codes by hand. You only need to read the tutorial once or twice.

insert image description here

4. Python employment project actual combat

We must learn Python to find a high-paying job or a high-paying part-time job. The following are some practical projects that companies can use. After learning these, I believe everyone will be able to find a satisfactory job.

insert image description here

11 Django Framework

insert image description here

16 WeChat public account
insert image description here

18 Common crawler module usage

insert image description here

21 Data Analysis

insert image description here

22 Machine Learning
insert image description here

There are other things, such as my own Python introductory graphic tutorials, you can use your mobile phone to learn knowledge when you don’t have a computer, and after learning the theory, you can type the code to practice verification, and there is also the library information of the Chinese version of Python. , MySQL and HTML tags, etc., these are things that can be given to fans.

Data collection

These are not very valuable things, but they are really good for learners who have no resources or the resources are not very good. If you can use it, you can scan the QR code of CSDN official certification below on WeChat [free access]↓↓↓ .

insert image description here

Good article recommendation

Understand the prospect of python: https://blog.csdn.net/SpringJavaMyBatis/article/details/127194835

Learn about python's part-time sideline: https://blog.csdn.net/SpringJavaMyBatis/article/details/127196603

Guess you like

Origin blog.csdn.net/weixin_49895216/article/details/130802226