App下載

詞條

大約有 2,000 項符合查詢結(jié)果 ,庫內(nèi)數(shù)據(jù)總量為 78,250 項。(搜索耗時:0.0030秒)

561.Python3 字符串 split()方法

Python3 字符串 描述 split()通過指定分隔符對字符串進行切片,如果參數(shù)num 有指定值,則僅分隔 num 個子字符串 語法 split()方法語法: str.split(str="", num=string.count(str)). 參數(shù) str -- 分隔符,默認為空格。 num -- 分割次數(shù)。 返回值 返...

http://www.o2fo.com/python3/python3-string-split.html

562.Python3 字符串 startswith()方法

Python3 字符串 描述 startswith() 方法用于檢查字符串是否是以指定子字符串開頭,如果是則返回 True,否則返回 False。如果參數(shù) beg 和 end 指定值,則在指定范圍內(nèi)檢查。 語法 startswith()方法語法: str.startswith(str, beg=0,end=len(string)); ...

http://www.o2fo.com/python3/python3-string-startswith.html

563.Python3 字符串 max()方法

Python3 字符串 描述 max() 方法返回字符串中最大的字母。 語法 max()方法語法: max(str) 參數(shù) str -- 字符串。 返回值 返回字符串中最大的字母。(這里的最大指ASCII碼最大)。 實例 以下實例展示了max()函數(shù)的使用方法: #!/usr/bin/python3 ...

http://www.o2fo.com/python3/python3-string-max.html

564.Python3 字符串 swapcase()方法

Python3 字符串 描述 swapcase() 方法用于對字符串的大小寫字母進行轉(zhuǎn)換。 語法 swapcase()方法語法: str.swapcase(); 參數(shù) NA。 返回值 返回大小寫字母轉(zhuǎn)換后生成的新字符串。 實例 以下實例展示了swapcase()函數(shù)的使用方法: #!/usr/bin/pyth...

http://www.o2fo.com/python3/python3-string-swapcase.html

565.Python3 字符串 translate()方法

Python3 字符串 描述 translate() 方法根據(jù)參數(shù)table給出的表(包含 256 個字符)轉(zhuǎn)換字符串的字符, 要過濾掉的字符放到 deletechars 參數(shù)中。 語法 translate()方法語法: str.translate(table[, deletechars]); 參數(shù) table -- 翻譯表,翻譯表是通過maketrans...

http://www.o2fo.com/python3/python3-string-translate.html

566.Python3 列表 index()方法

Python3 列表 描述 index() 函數(shù)用于從列表中找出某個值第一個匹配項的索引位置。 語法 index()方法語法: list.index(obj) 參數(shù) obj -- 查找的對象。 返回值 該方法返回查找對象的索引位置,如果沒有找到對象則拋出異常。 實例 以下實...

http://www.o2fo.com/python3/python3-att-list-index.html

567.Python3 列表 insert()方法

Python3 列表 描述 insert() 函數(shù)用于將指定對象插入列表的指定位置。 語法 insert()方法語法: list.insert(index, obj) 參數(shù) index -- 對象obj需要插入的索引位置。 obj -- 要插入列表中的對象。 返回值 該方法沒有返回值,但會在列表指定位...

http://www.o2fo.com/python3/python3-att-list-insert.html

568.Python3 字符串 isdecimal()方法

Python3 字符串 描述 isdecimal() 方法檢查字符串是否只包含十進制字符。這種方法只存在于unicode對象。 注意:定義一個十進制字符串,只需要在字符串前添加 'u' 前綴即可。 語法 isdecimal()方法語法: str.isdecimal() 參數(shù) 無 返回值 如...

http://www.o2fo.com/python3/python3-string-isdecimal.html

569.Python3 列表 pop()方法

Python3 列表 描述 pop() 函數(shù)用于移除列表中的一個元素(默認最后一個元素),并且返回該元素的值。 語法 pop()方法語法: list.pop(obj=list[-1]) 參數(shù) obj -- 可選參數(shù),要移除列表元素的對象。 返回值 該方法返回從列表中移除的元...

http://www.o2fo.com/python3/python3-att-list-pop.html

570.Python3 列表 len()方法

Python3 列表 描述 len() 方法返回列表元素個數(shù)。 語法 len()方法語法: len(list) 參數(shù) list -- 要計算元素個數(shù)的列表。 返回值 返回列表元素個數(shù)。 實例 以下實例展示了 len()函數(shù)的使用方法: #!/usr/bin/python3 list1 = ['Google', 'W3CSchool', 'T...

http://www.o2fo.com/python3/python3-att-list-len.html

抱歉,暫時沒有相關(guān)的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關(guān)的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關(guān)的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

561.Python3 字符串 split()方法

Python3 字符串 描述 split()通過指定分隔符對字符串進行切片,如果參數(shù)num 有指定值,則僅分隔 num 個子字符串 語法 split()方法語法: str.split(str="", num=string.count(str)). 參數(shù) str -- 分隔符,默認為空格。 num -- 分割次數(shù)。 返回值 返...

http://www.o2fo.com/python3/python3-string-split.html

562.Python3 字符串 startswith()方法

Python3 字符串 描述 startswith() 方法用于檢查字符串是否是以指定子字符串開頭,如果是則返回 True,否則返回 False。如果參數(shù) beg 和 end 指定值,則在指定范圍內(nèi)檢查。 語法 startswith()方法語法: str.startswith(str, beg=0,end=len(string)); ...

http://www.o2fo.com/python3/python3-string-startswith.html

563.Python3 字符串 max()方法

Python3 字符串 描述 max() 方法返回字符串中最大的字母。 語法 max()方法語法: max(str) 參數(shù) str -- 字符串。 返回值 返回字符串中最大的字母。(這里的最大指ASCII碼最大)。 實例 以下實例展示了max()函數(shù)的使用方法: #!/usr/bin/python3 ...

http://www.o2fo.com/python3/python3-string-max.html

564.Python3 字符串 swapcase()方法

Python3 字符串 描述 swapcase() 方法用于對字符串的大小寫字母進行轉(zhuǎn)換。 語法 swapcase()方法語法: str.swapcase(); 參數(shù) NA。 返回值 返回大小寫字母轉(zhuǎn)換后生成的新字符串。 實例 以下實例展示了swapcase()函數(shù)的使用方法: #!/usr/bin/pyth...

http://www.o2fo.com/python3/python3-string-swapcase.html

565.Python3 字符串 translate()方法

Python3 字符串 描述 translate() 方法根據(jù)參數(shù)table給出的表(包含 256 個字符)轉(zhuǎn)換字符串的字符, 要過濾掉的字符放到 deletechars 參數(shù)中。 語法 translate()方法語法: str.translate(table[, deletechars]); 參數(shù) table -- 翻譯表,翻譯表是通過maketrans...

http://www.o2fo.com/python3/python3-string-translate.html

566.Python3 列表 index()方法

Python3 列表 描述 index() 函數(shù)用于從列表中找出某個值第一個匹配項的索引位置。 語法 index()方法語法: list.index(obj) 參數(shù) obj -- 查找的對象。 返回值 該方法返回查找對象的索引位置,如果沒有找到對象則拋出異常。 實例 以下實...

http://www.o2fo.com/python3/python3-att-list-index.html

567.Python3 列表 insert()方法

Python3 列表 描述 insert() 函數(shù)用于將指定對象插入列表的指定位置。 語法 insert()方法語法: list.insert(index, obj) 參數(shù) index -- 對象obj需要插入的索引位置。 obj -- 要插入列表中的對象。 返回值 該方法沒有返回值,但會在列表指定位...

http://www.o2fo.com/python3/python3-att-list-insert.html

568.Python3 字符串 isdecimal()方法

Python3 字符串 描述 isdecimal() 方法檢查字符串是否只包含十進制字符。這種方法只存在于unicode對象。 注意:定義一個十進制字符串,只需要在字符串前添加 'u' 前綴即可。 語法 isdecimal()方法語法: str.isdecimal() 參數(shù) 無 返回值 如...

http://www.o2fo.com/python3/python3-string-isdecimal.html

569.Python3 列表 pop()方法

Python3 列表 描述 pop() 函數(shù)用于移除列表中的一個元素(默認最后一個元素),并且返回該元素的值。 語法 pop()方法語法: list.pop(obj=list[-1]) 參數(shù) obj -- 可選參數(shù),要移除列表元素的對象。 返回值 該方法返回從列表中移除的元...

http://www.o2fo.com/python3/python3-att-list-pop.html

570.Python3 列表 len()方法

Python3 列表 描述 len() 方法返回列表元素個數(shù)。 語法 len()方法語法: len(list) 參數(shù) list -- 要計算元素個數(shù)的列表。 返回值 返回列表元素個數(shù)。 實例 以下實例展示了 len()函數(shù)的使用方法: #!/usr/bin/python3 list1 = ['Google', 'W3CSchool', 'T...

http://www.o2fo.com/python3/python3-att-list-len.html

抱歉,暫時沒有相關(guān)的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程