Python basic interview

osc_ jpycizb5 2020-11-15 09:42:12
python basic interview


Catalog

 

Python Basics

Django Basics

The overall structure

Model layer

View layer

Form layer

Template layer

Django Advanced

Deployment related

Mysql relevant

Commonly used algorithm


Python Basics

 

  1.   Basics t: Are you familiar with grammar ? Introduce to you .
  2.   What are the keywords ? Explain its role .
  3.   What are the built-in methods ? Explain its role .
  4.   Explain what dynamic language education is 7 What do dynamic strong types mean ?
  5.   Is there a concept of coding specification ? What kind of coding standard is used ?
  6.   Explain the deep copy of Bailey's shallow copy .
  7.  l ambd a How to use it and how to use it .
  8.   Explain closures and what they do .
  9.   Implement a simple decorator , Used to cache the result of a function .
  10.  Pyth o n The differences and usage scenarios of several container types are as follows | Which? ?
  11.   The use and scenarios of list derivation are | those ?
  12.   Introduce to you y i e ld Usage of .
  13.   Common built-in libraries are | those ? Give an example of them Usage of .
  14.   Introduce what you know magic method ( Magic methods ) And its role .
  15.   Explain the concept of object orientation and its role in programming .
  16.   How to implement singleton mode ?
  17. How to Python Object serialization ?
  18.   Can you write multithreaded spear skillfully 1:1 Multiprocessing programs ?
  19.   Use socket Write a simple one HTTP The server , Successfully returns success that will do .
  20. How to understand Python Medium GIL? This is for our What's the impact of daily development ?
  21.   Explain the process 、 Between threads and processes The difference between .

Django Basics


The overall structure

  1.   How to understand the design pattern of MVC Pattern , How do you usually use this model ?
  2.   How to understand Djan go Medium MTV Model ?
  3. Introduce to you Dj ango You are familiar with the modules and their functions ?
  4.   How to see Dj ango since Band admin , And tell me about your experience .
  5.   How to understand WSGI The role of ?
  6. How to realize WSGI agreement ?
  7. Why don't you open it when it's officially deployed DEBUG = True To configure ?

Model layer

  1.   How to understand Dj ango migrations The role of ?
  2. Whether there is too much editing m igrat ions Wenzai | The experience of ? What's the reason ? Yes | Those that need attention ?
  3.   Introduce to you ORM The concept of .
  4.   How to understand ORM stay Dj ango The role in the framework ?
  5.   Introduce to you ORM Under the N+ l problem 、 happen Why And Solutions .
  6.   Introduce to you Django in Mo d e l The role of .
  7.  Model Of Meta Attribute classes are | Which configurable items ? What does it do ? How to use it everyday ?
  8.   Introduce to you Query Set And what you usually use Query S e t Optimization measures .
  9.   Introduce to you Pag inati on Usage of .
  10.   Introduce to you Mode l in F i e ld The role of .
  11.   How to customize Man ager? What scenarios need to be customized ?
  12.   Native SQL The efficiency of ORM Whether or not the efficiency of the Than ? What is the result? ? How to understand this difference ?
  13.  Dj an go Inside Set the permission logic and its granularity .

View layer

  1.  Dj ango in function v i ew and cl ass - based v iew The differences and applicable scenarios of .
  2.   How to give clas s-bas ed v i ew add to l og in required Decorator ?
  3.  midd l eware stay Django The role in the system .
  4.  s ettings Is configured by default in MIDDLEWARE S What are they? ? they What are the functions of ? Is it possible to remove ?
  5.  Dj ango How the system judges users Is it a login user ?
  6.   For nothing cooki e Browser , How to realize user login ?
  7.  Dj ango Medium request and I HttpRespo mouth se What is the role of ?
  8.   How to handle the logic of image upload And show logic ?
  9.   Let's introduce the used Dj an go Cache granularity  

Form layer

  1.   Introduce to you Same as ango in Form The role of .
  2.  Form in Of Fi e l d Follow Mode l Medium F i e ld What's the connection ?
  3.   How to be in Form The layer implements the verification of a field ?

Template layer

  1.   How to understand Django Templates are designer friendly ?
  2. How to plan in daily development Django Template inheritance and sichuan elude?
  3. Common labels ( tag ) And filters ( filter ) What are they? ?
  4. How to handle static files in a template ?
  5. How to handle the system defined in the template URL ?
  6. How to customize tags and filters ?

Django Advanced

 

  1. How to check Django Project performance issues ?
  2. How to deploy Django project ? What are the differences between different deployment methods 7
  3. How to handle static files in a project at deployment time ?
  4. How to implement custom login authentication logic ?
  5. How to understand Django in Model、Form、ModelForm and Fi Already ld、widget The relationship between ?
  6. paginator What is the principle of ? How to implement paging logic on your own 7
  7. Mod Already l in Fi Already ld It's used to play ?
  8. What is? SQL Inject ?ORM How to solve this problem again ?
  9. CSRF What is the full name ?Django How to solve this problem ?
  10. xss What does an attack mean ? How to avoid this kind of attack when developing ?
  11. signal And what is the implementation logic ?
  12. DATABASE Configuration in progress CONN_MAX_AGE Function of parameters and usage scenarios .
  13. CONN_MAX_AGE What is the implementation logic of ?
  14. use Django Built in User When the model creates the user , It can be used directly User(username=’the5fire',password=’the5fire’).save()?
  15. What's wrong with the creation method above ? What should be done with user passwords ?
  16. Use django-rest-framework How to implement user authentication login logic ?
  17. Than ssion Modules in Django What is the role of ?
  18. How to customize Django Permission granularity in , Implement your own permission logic ?
  19. How to catch anomalies in online systems ?
  20. How to analyze the problem that the response time of an interface is too long ? Suppose the response time is 2s, Which databases and cache lookups will be involved in a request ?

Deployment related

  1. How to automatically deploy projects to production environments ? What is the specific process ?
  2. Introduce the common automated deployment tools .
  3. What monitoring tools are used ? What does it do ? What are the shortcomings in use ?
  4. supervisor What is the role of ? Why use it ?
  5. Gunicorn What is the role of ? Why use it ?
  6. How to pressure test the system ? How to estimate the flow rate ?
  7. Nginx What is the role of ? Whether it can be configured independently ? Do you have any experience in optimization ?
  8. What is publishing logic ? How to ensure that the new version of the exception can be quickly rolled back ?

Mysql relevant

  1. How to determine which fields need to be indexed ?
  2. When you need to set the field property to m work que=True?
  3. How to investigate a certain SQL Statement index hits ?
  4. How to check for slow queries SQL sentence ?

Commonly used algorithm

  1. Python The implementation algorithm of dictionary type in .
  2. What garbage collection mechanisms do you know about high-level languages ?Python What is used in ?
  3. Introduce the cache related algorithms you know .
  4. Introduce the load balancing algorithms you know .
  5. Introduce the algorithm of database index .

 

版权声明
本文为[osc_ jpycizb5]所创,转载请带上原文链接,感谢

  1. 利用Python爬虫获取招聘网站职位信息
  2. Using Python crawler to obtain job information of recruitment website
  3. Several highly rated Python libraries arrow, jsonpath, psutil and tenacity are recommended
  4. Python装饰器
  5. Python实现LDAP认证
  6. Python decorator
  7. Implementing LDAP authentication with Python
  8. Vscode configures Python development environment!
  9. In Python, how dare you say you can't log module? ️
  10. 我收藏的有关Python的电子书和资料
  11. python 中 lambda的一些tips
  12. python中字典的一些tips
  13. python 用生成器生成斐波那契数列
  14. python脚本转pyc踩了个坑。。。
  15. My collection of e-books and materials about Python
  16. Some tips of lambda in Python
  17. Some tips of dictionary in Python
  18. Using Python generator to generate Fibonacci sequence
  19. The conversion of Python script to PyC stepped on a pit...
  20. Python游戏开发,pygame模块,Python实现扫雷小游戏
  21. Python game development, pyGame module, python implementation of minesweeping games
  22. Python实用工具,email模块,Python实现邮件远程控制自己电脑
  23. Python utility, email module, python realizes mail remote control of its own computer
  24. 毫无头绪的自学Python,你可能连门槛都摸不到!【最佳学习路线】
  25. Python读取二进制文件代码方法解析
  26. Python字典的实现原理
  27. Without a clue, you may not even touch the threshold【 Best learning route]
  28. Parsing method of Python reading binary file code
  29. Implementation principle of Python dictionary
  30. You must know the function of pandas to parse JSON data - JSON_ normalize()
  31. Python实用案例,私人定制,Python自动化生成爱豆专属2021日历
  32. Python practical case, private customization, python automatic generation of Adu exclusive 2021 calendar
  33. 《Python实例》震惊了,用Python这么简单实现了聊天系统的脏话,广告检测
  34. "Python instance" was shocked and realized the dirty words and advertisement detection of the chat system in Python
  35. Convolutional neural network processing sequence for Python deep learning
  36. Python data structure and algorithm (1) -- enum type enum
  37. 超全大厂算法岗百问百答(推荐系统/机器学习/深度学习/C++/Spark/python)
  38. 【Python进阶】你真的明白NumPy中的ndarray吗?
  39. All questions and answers for algorithm posts of super large factories (recommended system / machine learning / deep learning / C + + / spark / Python)
  40. [advanced Python] do you really understand ndarray in numpy?
  41. 【Python进阶】Python进阶专栏栏主自述:不忘初心,砥砺前行
  42. [advanced Python] Python advanced column main readme: never forget the original intention and forge ahead
  43. python垃圾回收和缓存管理
  44. java调用Python程序
  45. java调用Python程序
  46. Python常用函数有哪些?Python基础入门课程
  47. Python garbage collection and cache management
  48. Java calling Python program
  49. Java calling Python program
  50. What functions are commonly used in Python? Introduction to Python Basics
  51. Python basic knowledge
  52. Anaconda5.2 安装 Python 库(MySQLdb)的方法
  53. Python实现对脑电数据情绪分析
  54. Anaconda 5.2 method of installing Python Library (mysqldb)
  55. Python implements emotion analysis of EEG data
  56. Master some advanced usage of Python in 30 seconds, which makes others envy it
  57. python爬取百度图片并对图片做一系列处理
  58. Python crawls Baidu pictures and does a series of processing on them
  59. python链接mysql数据库
  60. Python link MySQL database