File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ def 方法测试():
3333 print (b , type (b ))
3434 print (a .subString (0 ), a .subString (0 , 3 ))
3535 print (a .toList ())
36+ print (a .getNormal ())
3637
3738class Integer测试 :
3839 @staticmethod
@@ -61,6 +62,7 @@ def 方法测试():
6162 b = a .replace ("114" , "" )
6263 print (b , type (b ))
6364 print (a .isDivisible (114514 ), a .isDivisible (b ))
65+ print (a .getNormal ())
6466
6567class List测试 :
6668 @staticmethod
@@ -83,11 +85,19 @@ def 运算符测试():
8385 @staticmethod
8486 def 方法测试 ():
8587 a = List (["1" , "2" , "3" ])
86- print (a .length )
87- print (a .toIntList ())
8888 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 )
9095 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 )
91101
92102if __name__ == "__main__" :
93103 String测试 .基本测试 ()
You can’t perform that action at this time.
0 commit comments