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 bf5e7bc commit c7ccb56Copy full SHA for c7ccb56
README.md
@@ -4,10 +4,10 @@
4
增加了像String和Integer这样的类,是对Python原版类型的扩展<br>
5
例如,你可以用这个模块的String类来创建字符串,这样你就可以使用这个类的函数,例如isNumber()函数,可以判断这个字符串是否是由数字组成的<br>
6
```Python
7
- from type import String
8
- test = String("Hello World")
9
- print(test) # Hello World
10
- print(test.isNumber()) # False
11
- print(test.length) # 11
+from type import String
+test = String("Hello World")
+print(test) # Hello World
+print(test.isNumber()) # False
+print(test.length) # 11
12
```
13
你同样可以重写这些类,来为它们添加更多方法<br>
0 commit comments