File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ def 方法测试():
33
33
print (b , type (b ))
34
34
print (a .subString (0 ), a .subString (0 , 3 ))
35
35
print (a .toList ())
36
+ print (a .getNormal ())
36
37
37
38
class Integer测试 :
38
39
@staticmethod
@@ -61,6 +62,7 @@ def 方法测试():
61
62
b = a .replace ("114" , "" )
62
63
print (b , type (b ))
63
64
print (a .isDivisible (114514 ), a .isDivisible (b ))
65
+ print (a .getNormal ())
64
66
65
67
class List测试 :
66
68
@staticmethod
@@ -83,11 +85,19 @@ def 运算符测试():
83
85
@staticmethod
84
86
def 方法测试 ():
85
87
a = List (["1" , "2" , "3" ])
86
- print (a .length )
87
- print (a .toIntList ())
88
88
b = List ([1 , 2 , 3 ])
89
- print (b .length )
89
+ c = List ([1 , "2" , "3" , 4 ])
90
+ d = List (["a" , List (["b" ])])
91
+ print (a , a .length )
92
+ print (a .toIntList ())
93
+ print (a .getNormal ())
94
+ print (b , b .length )
90
95
print (b .toStrList ())
96
+ print (a .getNormal ())
97
+ print (c , c .length )
98
+ print (c .toIntList (), c .toStrList ())
99
+ print (c .toIntegerList (), c .toStringList ())
100
+ print (d , d .length )
91
101
92
102
if __name__ == "__main__" :
93
103
String测试 .基本测试 ()
You can’t perform that action at this time.
0 commit comments