We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09781e2 commit 199c6f0Copy full SHA for 199c6f0
1 file changed
type.py
@@ -2,7 +2,7 @@
2
对Python原版类型的扩展
3
"""
4
__author__ = "Jerry"
5
-__version__ = "1.3.8"
+__version__ = "1.3.2"
6
7
__all__ = ["String", "Integer", "List"]
8
@@ -161,7 +161,7 @@ def __init__(self, int_) -> None:
161
self.__int = int_
162
163
def __repr__(self) -> str:
164
- return str(self.__int)
+ return self.toStr()
165
166
__str__ = __repr__
167
@@ -378,7 +378,7 @@ def toStringList(self):
378
stringList.append(String(i))
379
else:
380
stringList.append(i)
381
- return stringList
+ return List(stringList)
382
383
def toIntegerList(self):
384
"如果列表包含整数,返回一个将整数转为Integer对象的列表"
@@ -388,4 +388,4 @@ def toIntegerList(self):
388
integerList.append(Integer(i))
389
390
integerList.append(i)
391
- return integerList
+ return List(integerList)
0 commit comments