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

Python self study notes

編輯:Python

Chapter two


There is no whitespace at the end of the string :rstrip()
There is no blank at the beginning of the string :lstrip()
There is no blank space on either side of the string :strip()

The third chapter : list

List with [] Express

  1. Access list elements
  2. Use the values in the list , for example :bicycles[0].title()
  3. Modify list elements :bicycles[0]=' '
  4. Add list elements :bicycles.append('hola') perhaps bicycles.insert(0,'hola')
  5. Delete list elements :del bicycles[0] perhaps bicycles.pop(), Pop up the last element of the list perhaps bicycles.pop(1) perhaps bicycles.pop(‘hola’)
  6. Organization list : Permutation cars.sort(), Temporary sort cars.sorted(), Reverse sorting cars.sort(reverse=True), Inversion order cars.reverse()
  7. Determine the length of the list :len(cars)

Chapter four : Operation list

The first 5 Chapter if sentence


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