#!/usr/bin/env python
# -*- encoding: utf-8 -*-
class ClassName:
def __init__(self, arg1, arg2):
self.arg1 = arg1
self.arg2 = arg2
def myfunc(self):
print(self.arg1)
print(self.arg2)
def main():
cn = ClassName("arg1", "arg2")
cn.myfunc()
if __name__ == '__main__':
main()
标签:__,arg2,Python,arg1,代码,def,main,self,模板 From: https://www.cnblogs.com/cathonzhd/p/16642882.html