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

Quick reference manual for other common APIs of python3 (continuously updating ing...)

編輯:Python

The gods were silent - personal CSDN Blog Directory

Last updated :2022.6.27
Earliest update time :2022.6.27

  1. character string
    1. lower(): All lowercase letters
    2. strip(): Remove the leading and trailing spaces of the string
    3. strip(chars:str): Remove all... From the beginning and end of the string chars The characters that appear in ( Pay attention to this chars It's a string, so it can't be in regular expression format )
    4. endswith(chars:str): Returns a Boolean value , Whether the string uses chars As the end
  2. aggregate
    1. intersection :set.intersection(set1, set2 ... etc): Returns the intersection of the input parameter set
  3. eval(str): Execute an expression in string format , And return the expression result
  4. abnormal :raise Exception(message:str) Exception Can be replaced by other Exception Subclass .
  5. Print all properties of the object :object.__dict__

Reference materials in the process of writing this article :

  1. Python3 lower() Method | Novice tutorial
  2. Python3 strip() Method | Novice tutorial
  3. Python3 Errors and exceptions | Novice tutorial
  4. Python3 aggregate | Novice tutorial
  5. Python Set intersection() Method | Novice tutorial
  6. Python Print all attributes of an object _ Come and play the devil's Dong ! Technology blog _51CTO Blog

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