python中的real_Python中基本数据类型的学习
摆动的反义词
1 classstr(object):
2 """
3 str(object='') -> str
4 str(bytes_or_buffer[, encoding[, errors]]) -> str5
6 Create a new string object from the given object. If encoding or
7 errors is specified, then the object must expo a data buffer
8 that will be decoded using the given encoding and error handler.
9 Otherwi, returns the result of object.__str__() (if defined)10 or repr(object).11 encoding defaults defaultencoding().12 errors defaults to 'strict'.13 """
14 def capitalize(lf): #real signature unknown; restored from __doc__
15 """⾸字母⼤写其他的全部⼩写"""
16 """
17 S.capitalize() -> str18
19 Return a capitalized version of S, i.e. make the first character20 have upper ca and the rest lower ca.21 """
22 return ""
23
24 def cafold(lf): #real signature unknown; restored from __doc__
25 """所有字符⼩写(⽐更加⽜能把很多未知的对应变⼩写)"""
26 """
27 S.cafold() -> str28
29 Return a version of S suitable for caless comparisons.30 """
31 return ""
32
33 def center(lf, width, fillchar=None): #real signature unknown; restored from __doc__
34 """字符居中; width:总长度 ; fillchar:空⽩处填内容 默认⽆"""
35 """
(width[, fillchar]) -> str37
38 Return S centered in a string of length width. Padding is39 done using the specified fill character (default is a space)40 """
41 return ""
42
43 def count(lf, sub, start=None, end=None): #real signature unknown; restored from __doc__
44 """计算出字符串sub参数在出现⼏次, start:起始位置;end:结束位置"""
45 """
unt(sub[, start[, end]]) -> int47
48 Return the number of non-overlapping occurrences of substring sub in49 string S[start:end]. Optional arguments start and end are50 interpreted as in slice notation.51 """
52 return053
54 def endswith(lf, suffix, start=None, end=None): #real signature unknown; restored from __doc__
55 """判断是否以suffix参数结尾 start:起始位置;end结束位置"""
56 """
dswith(suffix[, start[, end]]) -> bool58
59 Return True if S ends with the specified suffix, Fal otherwi.60 With optional start, test S beginning at that
position.61 With optional end, stop comparing S at that position.62 suffix can also be a tuple of strings to try.63 """
64 returnFal65贩毒集团
66 def expandtabs(lf, tabsize=8): #real signature unknown; restored from __doc__
67 """以tabsize参数分割字符串,遇到'\t'不⾜的⽤空格补齐"""
68 """
pandtabs(tabsize=8) -> str70
71 Return a copy of S where all tab characters are expanded using spaces.72 If tabsize is not given, a tab size of 8 characters is assumed.73 """
74 return ""
75
祛斑有效
76 def find(lf, sub, start=None, end=None): #real signature unknown; restored from __doc__
77 """寻找⼦序列,找到第⼀个返回位置,找不到返回-1"""
78 """
79 S.find(sub[, start[, end]]) -> int80
81 Return the lowest index in S where substring sub is found,82 such that sub is contained within S[start:end]. Optional83 arguments start and end are interpreted as in slice notation.84
85 Return -1 on failure.86 """
87 return088
89 def format(*args, **kwargs): #known special ca of str.format
90 """字符串插⼊,动态参数,第⼀个参数列表形式,第⼆个传⼊字典"""
91 """
92 S.format(*args, **kwargs) -> str93
94 Return a formatted version of S, using substitutions from args and kwargs.95 The substitutions are identified by braces ('{' and '}').96 """
97 pass
98
99 def format_map(lf, mapping): #real signature unknown; restored from __doc__
100 """传⼊格式为字典形式的"""
101 """
102 S.format_map(mapping) -> str103
104 Return a formatted version of S, using substitutions from mapping.105 The substitutions are identified by braces ('{' and '}').106 """
107 return ""
108
109 def index(lf, sub, start=None, end=None): #real signature unknown; restored from __doc__
110 """和find⼀样寻找⼦序列位置,但没找到会报错,"""
111 """
112 S.index(sub[, start[, end]]) -> int113
114 Like S.find() but rai ValueError when the substring is not found.115 """
116 return0117
118 def isalnum(lf): #real signature unknown; restored from __doc__
119 """判断是否只有数字和字符 是返回true,否则返回fal"""
120 """
121 S.isalnum() -> bool122
123 Return True if all characters in S are alphanumeric124 and there is at least one character in S, Fal otherwi.125 """
126 returnFal127
12生肖年龄
128 def isalpha(lf): #real signature unknown; restored from __doc__
129 """判断是否只有字符 是返回true,否则返回fal"""
130 """
131 S.isalpha() -> bool132
133 Return True if all characters in S are alphabetic134 and there is at least one character in S, Fal otherwi.135 """
136 returnFal137
138 def isdecimal(lf): #real signature unknown; restored from __doc__
139 """判断是否是数字(实际中⽤的更多) 是返回true,否则返回fal"""
140 """
141 S.isdecimal() -> bool142
143 Return True if there are only decimal characters in S,144 Fal otherwi.145 """
146 returnFal147
148 def isdigit(lf): #real signature unknown; restored from __doc__
149 """判断是否是数字(⽐上⾯⽀持的种类多,不⽀持中⽂如⼆) 是返回true,否则返回fal"""
150 """
151 S.isdigit() -> bool152
双鱼女明星
153 Return True if all characters in S are digits154 and there is at least one character in S, Fal otherwi.155 """女儿的故事读后感
156 returnFal157
158 def isidentifier(lf): #real signature unknown; restored from __doc__
159 """是否符合变量的书写⽅式"""
160 """
161 S.isidentifier() -> bool162
163 Return True if S is a valid identifier according164 to the language definition.165
166 U keyword.iskeyword() to test for rerved identifiers167 such as "def" and "class".168 """
169 returnFal170
171 def islower(lf): #real signature unknown; restored from __doc__
172 """判断字母是否全是⼩写"""
173 """
174 S.islower() -> bool175
176 Return True if all cad characters in S are lowerca and there is177 at least one cad character in S, Fal otherwi.178 """
179 returnFal180
181 def isnumeric(lf): #real signature unknown; restored from __doc__
182 """判断是否是数字(⽀持更多如中⽂) 是返回true,否则返回fal"""
183 """
184 S.isnumeric() -> bool185
谈天论地186 Return True if there are only numeric characters in S,187 Fal otherwi.188 """
189 returnFal190
191 def isprintable(lf): #real signature unknown; restored from __doc__允许近义词
192 """是否有不可显⽰的字符串如'\t','\n'"""
193 """
194 S.isprintable() -> bool195
196 Return True if all characters in S are considered197 printable in repr() or S is empty, Fal otherwi.198 """
199 returnFal200
201 def isspace(lf): #real signature unknown; restored from __doc__
202 """是否全是空格"""
203 """
204 S.isspace() -> bool205
206 Return True if all characters in S are whitespace207 and there is at least one character in S, Fal otherwi.208 """
209 returnFal210
211 def istitle(lf): #real signature unknown; restored from __doc__
212 """是否是标题形式的如 The Book (⾸字母⼤写)"""
213 """
214 S.istitle() -> bool215
216 Return True if S is a titlecad string and there is at least one217 character in S, i.e. upper- and titleca characters may only218 follow uncad characters and lowerca characters only cad ones.219 Return Fal otherwi.220 """
221 returnFal222
223 def isupper(lf): #real signature unknown; restored from __doc__
224 """判断字母是否全部是⼤写"""
225 """
226 S.isupper() -> bool227
228 Return True if all cad characters in S are upperca and there is229 at least one cad character in S, Fal otherwi.230 """
231 returnFal232
233 def join(lf, iterable): #real signature unknown; restored from __doc__
234 """将iterable参数中的每个元素按照指定分隔符(调⽤join的变量)进⾏拼接"""
235 """
236 S.join(iterable) -> str237
238 Return a string which is the concatenation of the strings in the239 iterable. The parator between elements is S.240 """
241 return ""
242
243 def ljust(lf, width, fillchar=None): #real signature unknown; restored from __doc__
244 """将字符串放在左边,⽤法和center⼀样"""
245 """
246 S.ljust(width[, fillchar]) -> str247
248 Return S left-justified in a Unicode string of length width. Padding is249 done using the specified fill character (default is a space).250 """
251 return ""
252
253 def lower(lf): #real signature unknown; restored from __doc__
254 """将字符串转换成⼩写"""
255 """
256 S.lower() -> str257
258 Return a copy of the string S converted to lowerca.259 """
260 return ""
261