目录

整型(int)

  1. 将字符串转换成整型
  1. num = "123"
  2. v = int(num)

   2. 将字符串按进制位转换成整型

  1. num = "123"
  2. v = int(num,base=8)

   3. 输出将当前整数的二进制位数

  1. num = 10
  2. v = num.bit_length()

布尔值(bool)  

  true和false

  0和1

字符串(str)

  1. class str(object):
  2. """
  3. str(object='') -> str
  4. str(bytes_or_buffer[, encoding[, errors]]) -> str
  5.  
  6. Create a new string object from the given object. If encoding or
  7. errors is specified, then the object must expose a data buffer
  8. that will be decoded using the given encoding and error handler.
  9. Otherwise, returns the result of object.__str__() (if defined)
  10. or repr(object).
  11. encoding defaults to sys.getdefaultencoding().
  12. errors defaults to 'strict'.
  13. """
  14. def capitalize(self, *args, **kwargs): # real signature unknown
  15. """首字母大写"""
  16. """
  17. Return a capitalized version of the string.
  18.  
  19. More specifically, make the first character have upper case and the rest lower
  20. case.
  21. """
  22. pass
  23.  
  24. def center(self, *args, **kwargs): # real signature unknown
  25. """ 指定宽度,将字符填在中间,两边默认填充空格"""
  26. """
  27. Return a centered string of length width.
  28.  
  29. Padding is done using the specified fill character (default is a space).
  30. """
  31. pass
  32.  
  33. def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  34. """查找子字符串出现的次数,可以指定查找的起始位置和结束位置"""
  35. """
  36. S.count(sub[, start[, end]]) -> int
  37.  
  38. Return the number of non-overlapping occurrences of substring sub in
  39. string S[start:end]. Optional arguments start and end are
  40. interpreted as in slice notation.
  41. """
  42. return 0
  43.  
  44. def encode(self, *args, **kwargs): # real signature unknown
  45. """ url编码"""
  46. """
  47. Encode the string using the codec registered for encoding.
  48.  
  49. encoding
  50. The encoding in which to encode the string.
  51. errors
  52. The error handling scheme to use for encoding errors.
  53. The default is 'strict' meaning that encoding errors raise a
  54. UnicodeEncodeError. Other possible values are 'ignore', 'replace' and
  55. 'xmlcharrefreplace' as well as any other name registered with
  56. codecs.register_error that can handle UnicodeEncodeErrors.
  57. """
  58. pass
  59.  
  60. def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
  61. """最后子字符串是否匹配指定子字符串,相同返回true,不同返回false,可以指定起始和结束位置"""
  62. """
  63. S.endswith(suffix[, start[, end]]) -> bool
  64.  
  65. Return True if S ends with the specified suffix, False otherwise.
  66. With optional start, test S beginning at that position.
  67. With optional end, stop comparing S at that position.
  68. suffix can also be a tuple of strings to try.
  69. """
  70. return False
  71.  
  72. def expandtabs(self, *args, **kwargs): # real signature unknown
  73. """将字符串中的tab符(\t)转换8个空格,依次取8个字符,直到匹配到tab符,缺几个空格补几个空格"""
  74. """
  75. Return a copy where all tab characters are expanded using spaces.
  76.  
  77. If tabsize is not given, a tab size of 8 characters is assumed.
  78. """
  79. pass
  80.  
  81. def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  82. """查找子字符串最低索引,找到返回索引,否则返回-1,可以指定起始和结束位置"""
  83. """
  84. S.find(sub[, start[, end]]) -> int
  85.  
  86. Return the lowest index in S where substring sub is found,
  87. such that sub is contained within S[start:end]. Optional
  88. arguments start and end are interpreted as in slice notation.
  89.  
  90. Return -1 on failure.
  91. """
  92. return 0
  93.  
  94. def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  95. """从右边查找子字符串最低索引,找到返回索引,否则返回-1,可以指定起始和结束位置"""
  96. """ """
  97. """
  98. S.rfind(sub[, start[, end]]) -> int
  99.  
  100. Return the highest index in S where substring sub is found,
  101. such that sub is contained within S[start:end]. Optional
  102. arguments start and end are interpreted as in slice notation.
  103.  
  104. Return -1 on failure.
  105. """
  106. return 0
  107.  
  108. def format(self, *args, **kwargs): # known special case of str.format
  109. """替换以{""}表示的占位符,参数使用字符串列表和key=value的形式"""
  110. """
  111. S.format(*args, **kwargs) -> str
  112.  
  113. Return a formatted version of S, using substitutions from args and kwargs.
  114. The substitutions are identified by braces ('{' and '}').
  115. """
  116. pass
  117.  
  118. def format_map(self, mapping): # real signature unknown; restored from __doc__
  119. """替换以{""}表示的占位符,参数使用z字典"""
  120. """
  121. S.format_map(mapping) -> str
  122.  
  123. Return a formatted version of S, using substitutions from mapping.
  124. The substitutions are identified by braces ('{' and '}').
  125. """
  126. return ""
  127.  
  128. def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  129. """查找子字符串的最低索引,找到返回索引,否则报异常信息,可以指定起始和结束位置"""
  130. """
  131. S.index(sub[, start[, end]]) -> int
  132.  
  133. Return the lowest index in S where substring sub is found,
  134. such that sub is contained within S[start:end]. Optional
  135. arguments start and end are interpreted as in slice notation.
  136.  
  137. Raises ValueError when the substring is not found.
  138. """
  139. return 0
  140.  
  141. def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  142. """从右边查找子字符串的最低索引,找到返回索引,否则报异常信息,可以指定起始和结束位置"""
  143. """
  144. S.rindex(sub[, start[, end]]) -> int
  145.  
  146. Return the highest index in S where substring sub is found,
  147. such that sub is contained within S[start:end]. Optional
  148. arguments start and end are interpreted as in slice notation.
  149.  
  150. Raises ValueError when the substring is not found.
  151. """
  152. return 0
  153.  
  154. def isalnum(self, *args, **kwargs): # real signature unknown
  155. """判断是不是纯字母和数字,返回boolean值"""
  156. """
  157. Return True if the string is an alpha-numeric string, False otherwise.
  158.  
  159. A string is alpha-numeric if all characters in the string are alpha-numeric and
  160. there is at least one character in the string.
  161. """
  162. pass
  163.  
  164. def isalpha(self, *args, **kwargs): # real signature unknown
  165. """判断是不是纯字母,返回boolean值"""
  166. """
  167. Return True if the string is an alphabetic string, False otherwise.
  168.  
  169. A string is alphabetic if all characters in the string are alphabetic and there
  170. is at least one character in the string.
  171. """
  172. pass
  173.  
  174. def isascii(self, *args, **kwargs): # real signature unknown
  175. """判断是不是ascii值,返回boolean值"""
  176. """
  177. Return True if all characters in the string are ASCII, False otherwise.
  178.  
  179. ASCII characters have code points in the range U+0000-U+007F.
  180. Empty string is ASCII too.
  181. """
  182. pass
  183.  
  184. def isdecimal(self, *args, **kwargs): # real signature unknown
  185. """判断是不是十进制数字符串,返回boolean值"""
  186. """
  187. Return True if the string is a decimal string, False otherwise.
  188.  
  189. A string is a decimal string if all characters in the string are decimal and
  190. there is at least one character in the string.
  191. """
  192. pass
  193.  
  194. def isdigit(self, *args, **kwargs): # real signature unknown
  195. """判断是不是数字字符串,返回boolean值"""
  196. """
  197. Return True if the string is a digit string, False otherwise.
  198.  
  199. A string is a digit string if all characters in the string are digits and there
  200. is at least one character in the string.
  201. """
  202. pass
  203.  
  204. def isidentifier(self, *args, **kwargs): # real signature unknown
  205. """判断是不是python标识符(字母,下划线和数字,不能以数字开头),返回boolean值"""
  206. """
  207. Return True if the string is a valid Python identifier, False otherwise.
  208.  
  209. Use keyword.iskeyword() to test for reserved identifiers such as "def" and
  210. "class".
  211. """
  212. pass
  213.  
  214. def islower(self, *args, **kwargs): # real signature unknown
  215. """判断是不是小写,返回boolean值"""
  216. """
  217. Return True if the string is a lowercase string, False otherwise.
  218.  
  219. A string is lowercase if all cased characters in the string are lowercase and
  220. there is at least one cased character in the string.
  221. """
  222. pass
  223.  
  224. def isnumeric(self, *args, **kwargs): # real signature unknown
  225. """判断是不是数字字符,返回boolean值,认识阿拉伯数字之外的数字字符"""
  226. """
  227. Return True if the string is a numeric string, False otherwise.
  228.  
  229. A string is numeric if all characters in the string are numeric and there is at
  230. least one character in the string.
  231. """
  232. pass
  233.  
  234. def isprintable(self, *args, **kwargs): # real signature unknown
  235. """ 判断是否有转义字符存在,返回boolean值"""
  236. """
  237. Return True if the string is printable, False otherwise.
  238.  
  239. A string is printable if all of its characters are considered printable in
  240. repr() or if it is empty.
  241. """
  242. pass
  243.  
  244. def isspace(self, *args, **kwargs): # real signature unknown
  245. """判断是不是空格,返回boolean值"""
  246. """
  247. Return True if the string is a whitespace string, False otherwise.
  248.  
  249. A string is whitespace if all characters in the string are whitespace and there
  250. is at least one character in the string.
  251. """
  252. pass
  253.  
  254. def istitle(self, *args, **kwargs): # real signature unknown
  255. """判断是不是标题(每个单词首字母大写),返回boolean值"""
  256. """
  257. Return True if the string is a title-cased string, False otherwise.
  258.  
  259. In a title-cased string, upper- and title-case characters may only
  260. follow uncased characters and lowercase characters only cased ones.
  261. """
  262. pass
  263.  
  264. def isupper(self, *args, **kwargs): # real signature unknown
  265. """判断是不是大写,返回boolean值"""
  266. """
  267. Return True if the string is an uppercase string, False otherwise.
  268.  
  269. A string is uppercase if all cased characters in the string are uppercase and
  270. there is at least one cased character in the string.
  271. """
  272. pass
  273.  
  274. def join(self, ab=None, pq=None, rs=None): # real signature unknown; restored from __doc__
  275. """将字符填充到给定字符串的每个字符之间"""
  276. """
  277. Concatenate any number of strings.
  278.  
  279. The string whose method is called is inserted in between each given string.
  280. The result is returned as a new string.
  281.  
  282. Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'
  283. """
  284. pass
  285.  
  286. def ljust(self, *args, **kwargs): # real signature unknown
  287. """在字符串的右边填充字符"""
  288. """
  289. Return a left-justified string of length width.
  290.  
  291. Padding is done using the specified fill character (default is a space).
  292. """
  293. pass
  294.  
  295. def rjust(self, *args, **kwargs): # real signature unknown
  296. """在字符串的左边填充字符"""
  297. """
  298. Return a right-justified string of length width.
  299.  
  300. Padding is done using the specified fill character (default is a space).
  301. """
  302. pass
  303.  
  304. def lower(self, *args, **kwargs): # real signature unknown
  305. """字母小写"""
  306. """ Return a copy of the string converted to lowercase. """
  307. pass
  308.  
  309. def upper(self, *args, **kwargs): # real signature unknown
  310. """字母大写"""
  311. """ Return a copy of the string converted to uppercase. """
  312. pass
  313.  
  314. def casefold(self, *args, **kwargs): # real signature unknown
  315. """" 将大写转换成小写 适用其他国家的语法"""
  316. """ Return a version of the string suitable for caseless comparisons. """
  317. pass
  318.  
  319. def lstrip(self, *args, **kwargs): # real signature unknown
  320. """删除从左边匹配的字符串"""
  321. """
  322. Return a copy of the string with leading whitespace removed.
  323.  
  324. If chars is given and not None, remove characters in chars instead.
  325. """
  326. pass
  327.  
  328. def maketrans(self, *args, **kwargs): # real signature unknown
  329. """设置字符的对应关系,与translate连用"""
  330. """
  331. Return a translation table usable for str.translate().
  332.  
  333. If there is only one argument, it must be a dictionary mapping Unicode
  334. ordinals (integers) or characters to Unicode ordinals, strings or None.
  335. Character keys will be then converted to ordinals.
  336. If there are two arguments, they must be strings of equal length, and
  337. in the resulting dictionary, each character in x will be mapped to the
  338. character at the same position in y. If there is a third argument, it
  339. must be a string, whose characters will be mapped to None in the result.
  340. """
  341. pass
  342.  
  343. def translate(self, *args, **kwargs): # real signature unknown
  344. """根据对应关系,翻译字符串"""
  345. """
  346. Replace each character in the string using the given translation table.
  347.  
  348. table
  349. Translation table, which must be a mapping of Unicode ordinals to
  350. Unicode ordinals, strings, or None.
  351.  
  352. The table must implement lookup/indexing via __getitem__, for instance a
  353. dictionary or list. If this operation raises LookupError, the character is
  354. left untouched. Characters mapped to None are deleted.
  355. """
  356. pass
  357.  
  358. def partition(self, *args, **kwargs): # real signature unknown
  359. """指定字符切割"""
  360. """
  361. Partition the string into three parts using the given separator.
  362.  
  363. This will search for the separator in the string. If the separator is found,
  364. returns a 3-tuple containing the part before the separator, the separator
  365. itself, and the part after it.
  366.  
  367. If the separator is not found, returns a 3-tuple containing the original string
  368. and two empty strings.
  369. """
  370. pass
  371.  
  372. def rpartition(self, *args, **kwargs): # real signature unknown
  373. """从右边指定字符切割"""
  374. """
  375. Partition the string into three parts using the given separator.
  376.  
  377. This will search for the separator in the string, starting at the end. If
  378. the separator is found, returns a 3-tuple containing the part before the
  379. separator, the separator itself, and the part after it.
  380.  
  381. If the separator is not found, returns a 3-tuple containing two empty strings
  382. and the original string.
  383. """
  384. pass
  385.  
  386. def replace(self, *args, **kwargs): # real signature unknown
  387. """用新字符串,替换旧字符串,默认全部替换"""
  388. """
  389. Return a copy with all occurrences of substring old replaced by new.
  390.  
  391. count
  392. Maximum number of occurrences to replace.
  393. -1 (the default value) means replace all occurrences.
  394.  
  395. If the optional argument count is given, only the first count occurrences are
  396. replaced.
  397. """
  398. pass
  399.  
  400. def rsplit(self, *args, **kwargs): # real signature unknown
  401. """指定字符从右边分割字符串,可指定最大分割"""
  402. """
  403. Return a list of the words in the string, using sep as the delimiter string.
  404.  
  405. sep
  406. The delimiter according which to split the string.
  407. None (the default value) means split according to any whitespace,
  408. and discard empty strings from the result.
  409. maxsplit
  410. Maximum number of splits to do.
  411. -1 (the default value) means no limit.
  412.  
  413. Splits are done starting at the end of the string and working to the front.
  414. """
  415. pass
  416.  
  417. def split(self, *args, **kwargs): # real signature unknown
  418. """指定字符分割字符串,可指定最大分割"""
  419. """
  420. Return a list of the words in the string, using sep as the delimiter string.
  421.  
  422. sep
  423. The delimiter according which to split the string.
  424. None (the default value) means split according to any whitespace,
  425. and discard empty strings from the result.
  426. maxsplit
  427. Maximum number of splits to do.
  428. -1 (the default value) means no limit.
  429. """
  430. pass
  431.  
  432. def splitlines(self, *args, **kwargs): # real signature unknown
  433. """根据换行(\n)分割,true指定保留换行,false不保留"""
  434. """
  435. Return a list of the lines in the string, breaking at line boundaries.
  436.  
  437. Line breaks are not included in the resulting list unless keepends is given and
  438. true.
  439. """
  440. pass
  441.  
  442. def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__
  443. """判断是不是指定字符串开头,指定起始和结束位置,返回Boolean"""
  444. """
  445. S.startswith(prefix[, start[, end]]) -> bool
  446.  
  447. Return True if S starts with the specified prefix, False otherwise.
  448. With optional start, test S beginning at that position.
  449. With optional end, stop comparing S at that position.
  450. prefix can also be a tuple of strings to try.
  451. """
  452. return False
  453.  
  454. def strip(self, *args, **kwargs): # real signature unknown
  455. """删除左右两边匹配的字符串,默认去除回车和空格"""
  456. """
  457. Return a copy of the string with leading and trailing whitespace remove.
  458.  
  459. If chars is given and not None, remove characters in chars instead.
  460. """
  461. pass
  462.  
  463. def rstrip(self, *args, **kwargs): # real signature unknown
  464. """删除从右边匹配的字符串"""
  465. """
  466. Return a copy of the string with trailing whitespace removed.
  467.  
  468. If chars is given and not None, remove characters in chars instead.
  469. """
  470. pass
  471.  
  472. def swapcase(self, *args, **kwargs): # real signature unknown
  473. """大小写转换"""
  474. """ Convert uppercase characters to lowercase and lowercase characters to uppercase. """
  475. pass
  476.  
  477. def title(self, *args, **kwargs): # real signature unknown
  478. """每个单词开头大写"""
  479. """
  480. Return a version of the string where each word is titlecased.
  481.  
  482. More specifically, words start with uppercased characters and all remaining
  483. cased characters have lower case.
  484. """
  485. pass
  486.  
  487. def zfill(self, *args, **kwargs): # real signature unknown
  488. """从左边填充0"""
  489. """
  490. Pad a numeric string with zeros on the left, to fill a field of the given width.
  491.  
  492. The string is never truncated.
  493. """
  494. pass

str_method

列表(list)

    ['a','b','c','d']

   1. 切片

  1. test = ['a','b','c','d']
  2. v = test[0:3]

   2. 删除

  1. del test[2]

   3. 判断元素是否在列表中

  1. v = 'a' in test

  4. 转换list的条件为可迭代

  1. v = list("abcdef")

  list方法

  1. class list(object):
  2. """
  3. Built-in mutable sequence.
  4.  
  5. If no argument is given, the constructor creates a new empty list.
  6. The argument must be an iterable if specified.
  7. """
  8.  
  9. def append(self, *args, **kwargs): # real signature unknown
  10. """在后面追加items"""
  11. """ Append object to the end of the list. """
  12. pass
  13.  
  14. def clear(self, *args, **kwargs): # real signature unknown
  15. """清空"""
  16. """ Remove all items from list. """
  17. pass
  18.  
  19. def copy(self, *args, **kwargs): # real signature unknown
  20. """复制"""
  21. """ Return a shallow copy of the list. """
  22. pass
  23.  
  24. def count(self, *args, **kwargs): # real signature unknown
  25. """返回值的出现次数"""
  26. """ Return number of occurrences of value. """
  27. pass
  28.  
  29. def extend(self, *args, **kwargs): # real signature unknown
  30. """通过附加iterable中的元素来扩展列表"""
  31. """ Extend list by appending elements from the iterable. """
  32. pass
  33.  
  34. def index(self, *args, **kwargs): # real signature unknown
  35. """返回找到第一个值的索引,没找到报错"""
  36. """
  37. Return first index of value.
  38.  
  39. Raises ValueError if the value is not present.
  40. """
  41. pass
  42.  
  43. def insert(self, *args, **kwargs): # real signature unknown
  44. """插入指定位置元素"""
  45. """ Insert object before index. """
  46. pass
  47.  
  48. def pop(self, *args, **kwargs): # real signature unknown
  49. """删除指定索引的value,并返回value,不指定索引,默认删除最后"""
  50. """
  51. Remove and return item at index (default last).
  52.  
  53. Raises IndexError if list is empty or index is out of range.
  54. """
  55. pass
  56.  
  57. def remove(self, *args, **kwargs): # real signature unknown
  58. """删除列表指定value,左边优先"""
  59. """
  60. Remove first occurrence of value.
  61.  
  62. Raises ValueError if the value is not present.
  63. """
  64. pass
  65.  
  66. def reverse(self, *args, **kwargs): # real signature unknown
  67. """翻转列表的值"""
  68. """ Reverse *IN PLACE*. """
  69. pass
  70.  
  71. def sort(self, *args, **kwargs): # real signature unknown
  72. """排序"""
  73. """ Stable sort *IN PLACE*. """
  74. pass

list_method

元组(tuple)

  ('a','b','c','d')

  1. 元组不可修改

  tuple方法

  1. class tuple(object):
  2. """
  3. Built-in immutable sequence.
  4.  
  5. If no argument is given, the constructor returns an empty tuple.
  6. If iterable is specified the tuple is initialized from iterable's items.
  7.  
  8. If the argument is a tuple, the return value is the same object.
  9. """
  10.  
  11. def count(self, *args, **kwargs): # real signature unknown
  12. """返回值的出现次数"""
  13. """ Return number of occurrences of value. """
  14. pass
  15.  
  16. def index(self, *args, **kwargs): # real signature unknown
  17. """返回找到第一个值的索引,没找到报错"""
  18. """
  19. Return first index of value.
  20.  
  21. Raises ValueError if the value is not present.
  22. """
  23. pass

tuple_method

字典(dict)

  {  ‘a’:111, 'b':111, 'c':111, 'd':111 }

  dlct的方法

  1. class dict(object):
  2. """
  3. dict() -> new empty dictionary
  4. dict(mapping) -> new dictionary initialized from a mapping object's
  5. (key, value) pairs
  6. dict(iterable) -> new dictionary initialized as if via:
  7. d = {}
  8. for k, v in iterable:
  9. d[k] = v
  10. dict(**kwargs) -> new dictionary initialized with the name=value pairs
  11. in the keyword argument list. For example: dict(one=1, two=2)
  12. """
  13.  
  14. def clear(self): # real signature unknown; restored from __doc__
  15. """清空"""
  16. """ D.clear() -> None. Remove all items from D. """
  17. pass
  18.  
  19. def copy(self): # real signature unknown; restored from __doc__
  20. """拷贝"""
  21. """ D.copy() -> a shallow copy of D """
  22. pass
  23.  
  24. @staticmethod # known case静态方法
  25. def fromkeys(*args, **kwargs): # real signature unknown
  26. """使用来自iterable和值设置为value的键创建一个新字典"""
  27. """ Create a new dictionary with keys from iterable and values set to value. """
  28. pass
  29.  
  30. def get(self, *args, **kwargs): # real signature unknown
  31. """如果key在字典中,则返回key的值,否则返回default。"""
  32. """ Return the value for key if key is in the dictionary, else default. """
  33. pass
  34.  
  35. def items(self): # real signature unknown; restored from __doc__
  36. """获取字典里所有的键值对"""
  37. """"""
  38. """ D.items() -> a set-like object providing a view on D's items """
  39. pass
  40.  
  41. def keys(self): # real signature unknown; restored from __doc__
  42. """获取字典里所有的key"""
  43. """ D.keys() -> a set-like object providing a view on D's keys """
  44. pass
  45.  
  46. def pop(self, k, d=None): # real signature unknown; restored from __doc__
  47. """删除指点key的值,并返回value,如果key没找到,返回默认值"""
  48. """
  49. D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
  50. If key is not found, d is returned if given, otherwise KeyError is raised
  51. """
  52. pass
  53.  
  54. def popitem(self): # real signature unknown; restored from __doc__
  55. """删除键值对,并返回键值对"""
  56. """
  57. D.popitem() -> (k, v), remove and return some (key, value) pair as a
  58. 2-tuple; but raise KeyError if D is empty.
  59. """
  60. pass
  61.  
  62. def setdefault(self, *args, **kwargs): # real signature unknown
  63. """如果键不在字典中,则插入值为default的值。
  64. 如果key在字典中,则返回key的值,否则返回default。"""
  65. """
  66. Insert key with a value of default if key is not in the dictionary.
  67.  
  68. Return the value for key if key is in the dictionary, else default.
  69. """
  70. pass
  71.  
  72. def update(self, E=None, **F): # known special case of dict.update
  73. """更新字典,参数可以是字典和‘key=value,key2=value2...’"""
  74. """
  75. D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
  76. If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
  77. If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
  78. In either case, this is followed by: for k in F: D[k] = F[k]
  79. """
  80. pass
  81.  
  82. def values(self): # real signature unknown; restored from __doc__
  83. """获得字典的values"""
  84. """ D.values() -> an object providing a view on D's values """
  85. pass

dict_method

python之路(1)数据类型的更多相关文章

  1. python之路:数据类型初识

    python开发之路:数据类型初识 数据类型非常重要.不过我这么说吧,他不重要我还讲个屁? 好,既然有人对数据类型不了解,我就讲一讲吧.反正这东西不需要什么python代码. 数据类型我讲的很死板.. ...

  2. Python之路-基础数据类型之字典 集合

    字典的定义-dict 字典(dict)是python中唯⼀的⼀个映射类型.他是以{ }括起来的键值对组成,字典是无序的,key是不可修改的.dic = {1:'好',2:'美',3:'啊'} 字典的操 ...

  3. 小白的Python之路 day1 数据类型,数据运算

    一.数据类型初识 1.数字 2 是一个整数的例子.长整数 不过是大一些的整数.3.23和52.3E-4是浮点数的例子.E标记表示10的幂.在这里,52.3E-4表示52.3 * 10-4.(-5+4j ...

  4. Python之路-基础数据类型之字符串

    字符串类型 字符串是不可变的数据类型 索引(下标) 我们在日常生活中会遇到很多类似的情况,例如吃饭排队叫号,在学校时会有学号,工作时会有工号,这些就是一种能保证唯一准确的手段,在计算机中也是一样,它就 ...

  5. Python之路-基础数据类型之列表 元组

    列表的定义 列表是Python基础数据类型之一,它是以[ ]括起来, 每个元素用' , '隔开而且可以存放各种数据类型: lst = [1,2,'你好','num'] 列表的索引和切片 与字符串类似, ...

  6. 百万年薪python之路 -- 基础数据类型的补充练习

    1.看代码写结果 v1 = [1,2,3,4,5] v2 = [v1,v1,v1] v1.append(6) print(v1) print(v2) [1,2,3,4,5,6] [[1,2,3,4,5 ...

  7. 百万年薪python之路 -- 基础数据类型的补充

    基础数据类型的补充 str: 首字母大写 name = 'alexdasx' new_name = name.capitalize() print(new_name) 通过元素查找下标 从左到右 只查 ...

  8. python之路-基本数据类型之list列表

    1.概述 列表是python的基本数据类型之一,是一个可变的数据类型,用[]方括号表示,每一项元素使用逗号隔开,可以装大量的数据 #先来看看list列表的源码写了什么,方法:按ctrl+鼠标左键点li ...

  9. Python之路-基本数据类型

    一.数据类型 1.数字 包含整型和浮点型,还有复数2.字符 长度,索引,切片也适用于列表的操作 移除空白 strip() 默认字符串前后的空格,制表符,换行符 strip(";") ...

  10. python之路-bytes数据类型

    一. python 3最重要的新特性大概要算是对文本和二进制数据作了更为清晰的区分.文本总是Unicode,由str类型表示,二进制数据则由bytes类型表示.python 3不会以任意隐式的方式混用 ...

随机推荐

  1. Unix、Windows、Mac OS、Linux系统故事

    我们熟知的操作系统大概都是windows系列,近年来Apple的成功,让MacOS也逐渐走进普通用户.在服务器领域,恐怕Linux是无人不知无人不晓.他们都是操作系统,也在自己的领域里独领风骚.这都还 ...

  2. LeetCode算法题-Array Partition I(Java实现)

    这是悦乐书的第262次更新,第275篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第129题(顺位题号是561).给定一个2n个整数的数组,你的任务是将这些整数分组为n对 ...

  3. css_选择器

    老师的博客:https://www.cnblogs.com/liwenzhou/p/7999532.html 参考w3 school:http://www.w3school.com.cn/css/cs ...

  4. Linux 内核空间与用户空间

    本文以 32 位系统为例介绍内核空间(kernel space)和用户空间(user space). 内核空间和用户空间 对 32 位操作系统而言,它的寻址空间(虚拟地址空间,或叫线性地址空间)为 4 ...

  5. 性能测试中的最佳用户数、最大用户数、TPS、响应时间、吞吐量和吞吞吐率

    一:最佳用户数.最大用户数 转:http://www.cnblogs.com/jackei/archive/2006/11/20/565527.html 二:  事务.TPS 1:事务:就是用户某一步 ...

  6. Linux内存管理 (10)缺页中断处理

    专题:Linux内存管理专题 关键词:数据异常.缺页中断.匿名页面.文件映射页面.写时复制页面.swap页面. malloc()和mmap()等内存分配函数,在分配时只是建立了进程虚拟地址空间,并没有 ...

  7. Winform开发框架中工作流模块的动态处理

    在工作流处理表中,首先我们区分流程模板和流程实例两个部分,这个其实就是类似模板和具体文档的概念,我们一份模板可以创建很多个类似的文档,文档样式结构类似的.同理,流程模板实例为流程实例后,就是具体的一个 ...

  8. .Net Core应用框架Util介绍(六)

    前面介绍了Util是如何封装以降低Angular应用的开发成本. 现在把关注点移到服务端,本文将介绍分层架构各构造块及基类,并对不同层次的开发人员应如何进行业务开发提供一些建议. Util分层架构介绍 ...

  9. python操作MONGODB数据库,提取部分数据再存储

    目标:从一个数据库中提取几个集合中的部分数据,组合起来一共一万条.几个集合,不足一千条数据的集合就全部提取,够一千条的就用一万减去不足一千的,再除以大于一千的集合个数,得到的值即为所需提取文档的个数. ...

  10. 阿里云短信服务bug

    接入阿里云短信服务,在springboot中写测试方法,执行到 IClientProfile profile = DefaultProfile.getProfile("cn-hangzhou ...