Skip to content
Johnson Fu edited this page Jul 3, 2020 · 4 revisions

Quick Start

Class Test

"""
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)

Resources

Pyramid, a Python Web Framework

https://trypyramid.com/

  • freemarker
  • thymeleaf
  • JMX (jconsole)
  • ZeroMQ
  • microk8s
  • multipass
  • pwsh (powershell)
Clone this wiki locally