python工做平常:數據庫連接 方法封裝

拿來即用 下面是代碼python import pymysql import sys class Config(object): @staticmethod def get_config(name): config = { 'localhost': { 'host': '127.0.0.1',
相關文章
相關標籤/搜索