摘要:
拿来即用的mysql连接池使用源码 # -*- ecoding: utf-8 -*- # @ModuleName: test002 # @Function: # @Author: darling # @Time: 2022-05-05 20:01 import configparser import 阅读全文
摘要:
原代码 def __init__(self, config_filename="dbMysqlConfig.cnf"): file_path = os.path.join(os.path.dirname(__file__), config_filename) self.cf = configpars 阅读全文
摘要:
操作系统:windows10 语言:Python3.9 IDE: PyCharm 本地代码执行时,使用jieba分词库,没有问题。原代码如下: # encoding = utf - 8 import jieba def word_segmentation(sentence): words_gener 阅读全文
摘要:
dbMysqlConfig.cnf [dbMysql] host = 127.0.0.1 port = 3306 user = root password = wonderful2021 db_name = test001 charset = utf8 直接读取配置文件进行链接 # -*- ecod 阅读全文