-
Notifications
You must be signed in to change notification settings - Fork 0
Python
Johnson Fu edited this page Jul 3, 2020
·
4 revisions
"""
test class
"""
class Test(object):
x = 10 # class variable
def __init__(self): # constructor
print("init")
self.y = 20 # another class variable
def query_info(self): # method
print("query")
return [{"id": "1"}, {"id":"10"}]
def query_id(self):
return 0
trail = Test()
info = trail.query_info()
print(info)
trail.query_id()
print(trail.x)
print(trail.y)
Pyramid, a Python Web Framework
- freemarker
- thymeleaf
- JMX (jconsole)
- ZeroMQ
- microk8s
- multipass
- pwsh (powershell)