# l=list([1,2,3,4])
# print(l)
#
# class Foo:
# pass
# obj=Foo()
# print(obj)
'''
[1, 2, 3, 4]
<__main__.Foo object at 0x000001F70F1C2F48>
'''
# class People:
# def __init__(self,name,age):
# self.name=name
# self.age=age
# rambo=People('rambo',18)
# print(rambo)
'''
<__main__.People object at 0x0000019D50232048>
'''
# class People:
# def __init__(self,name,age):
# self.name=name
# self.age=age
# def __str__(self):
# return '<name:%s age:%s>'%(self.name,self.age)
# rambo=People('rambo',18)
# print(rambo)
'''
<name:rambo age:18>
'''
# class Foo:
# def __del__(self):
# print('del>>:')
# obj=Foo()
# print('主')
'''
主
del>>:
'''
# class Foo:
# def __del__(self):
# print('del>>:')
# obj=Foo()
# del obj
# print('主')
'''
del>>:
主
'''
# class Mysql:
# def __init__(self,host,port):
# self.host=host
# self.port=port
# self.conn=Connect(host,port)
# def __del__(self):
# self.conn.close()
# m=Mysql('1.1.1.1',9527)
# m.conn.execute('dnbuielwcneilanceliacn')