摘要: python 3.x import pymysql conn=pymysql.connect(host,port,user,passwd,database,chartset)cursor=conn.cursor()row_count=cursor.execute('show databases;') 阅读全文
posted @ 2022-07-13 20:06 Orientation 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 通过 dir 方法 可以查看 dir(obj) 如果是自定义类生成的对象,可以通过 __dict__ 属性来查看, class Test(): ''' this is document ''' x=1 def __init__(self,name,age): self.name=name self. 阅读全文
posted @ 2022-07-13 10:44 Orientation 阅读(263) 评论(0) 推荐(0) 编辑