We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bca2a58 commit 4a2e8b4Copy full SHA for 4a2e8b4
type.py
@@ -1,5 +1,5 @@
1
__author__ = "Jerry"
2
-__version__ = "1.2.2"
+__version__ = "1.2.3"
3
4
class NotComposedOfNumbersError(Exception):
5
"不是由数字组成的字符串使用String对象的toInt()函数或toInteger()函数时抛出"
@@ -20,6 +20,10 @@ def __repr__(self) -> str:
20
21
__str__ = __repr__
22
23
+ def __len__(self):
24
+ "使用len()函数时调用"
25
+ return self.length
26
+
27
def __add__(self, other):
28
"当与一个字符串或另一个String对象进行加操作时调用"
29
if type(other) is String:
0 commit comments