We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d9395b commit e862016Copy full SHA for e862016
1 file changed
property.py
@@ -0,0 +1,13 @@
1
+__author__ = 'tanteng'
2
+
3
+class Ver(object):
4
+ def __init__(self,version):
5
+ self.version = version
6
7
+ @property
8
+ def version_no(self):
9
+ return self.version
10
11
12
+ver = Ver('2.0')
13
+print(ver.version_no)
0 commit comments