App下載

詞條

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

561.Python3 字符串 rstrip()方法

Python3 字符串 描述 rstrip() 刪除 string 字符串末尾的指定字符(默認(rèn)為空格). 語(yǔ)法 rstrip()方法語(yǔ)法: str.rstrip([chars]) 參數(shù) chars -- 指定刪除的字符(默認(rèn)為空格) 返回值 返回刪除 string 字符串末尾的指定字符后生成的新字符串。 ...

http://m.o2fo.com/python3/python3-string-rstrip.html

562.Python3 字符串 split()方法

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

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

563.Python3 字符串 startswith()方法

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

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

564.Python3 字符串 max()方法

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

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

565.Python3 字符串 swapcase()方法

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

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

566.Python3 字符串 translate()方法

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

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

567.Python3 列表 index()方法

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

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

568.Python3 列表 insert()方法

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

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

569.Python3 字符串 isdecimal()方法

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

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

570.Python3 列表 pop()方法

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

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

抱歉,暫時(shí)沒(méi)有相關(guān)的微課

w3cschool 建議您:

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

抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程

w3cschool 建議您:

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

抱歉,暫時(shí)沒(méi)有相關(guān)的教程

w3cschool 建議您:

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

561.Python3 字符串 rstrip()方法

Python3 字符串 描述 rstrip() 刪除 string 字符串末尾的指定字符(默認(rèn)為空格). 語(yǔ)法 rstrip()方法語(yǔ)法: str.rstrip([chars]) 參數(shù) chars -- 指定刪除的字符(默認(rèn)為空格) 返回值 返回刪除 string 字符串末尾的指定字符后生成的新字符串。 ...

http://m.o2fo.com/python3/python3-string-rstrip.html

562.Python3 字符串 split()方法

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

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

563.Python3 字符串 startswith()方法

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

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

564.Python3 字符串 max()方法

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

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

565.Python3 字符串 swapcase()方法

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

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

566.Python3 字符串 translate()方法

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

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

567.Python3 列表 index()方法

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

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

568.Python3 列表 insert()方法

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

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

569.Python3 字符串 isdecimal()方法

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

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

570.Python3 列表 pop()方法

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

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

抱歉,暫時(shí)沒(méi)有相關(guān)的文章

w3cschool 建議您:

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

熱門(mén)課程