基本常識
- python 使用set對列表去重,並保持列表原來順序
- python基礎-python函數any()與all()的區別
-
ceil() 函數返回數字的上入整數。
-
其中isdigit()不能用來判斷負數
-
Python isalnum() 方法檢測字符串是否由字母和數字組成。
從Python中readline()函數讀取的一行內容中去掉換行符\n
方法是使用strip()函數
- python readline()逐行讀,怎麼判斷已到末尾?
Debug
- isdigit()不能判斷負數
terms of service.
Django Help: AttributeError: ‘module’ object has no attribute ‘Charfield’change ‘Charfield’ to ‘CharField’
P.K.
①remove 是刪除首個符合條件的元素。並不是刪除特定的索引
②del 來說,它是根據索引(元素所在位置)來刪除的
③pop返回的是你彈出的那個數值。