2019独角兽企业重金招聘Python工程师标准>>>
def contract_str():index = 8db_size = 8new_table_name = 'b''_'+str(index & (db_size-1))print new_table_name
ImportError: No module named mysql.connector
import mysql.connector as sql_connector
Python保存时提示“SyntaxError: Non-ASCII character '\xe8' in file”
# -*- coding: utf-8 -*-
IOError: [Errno 21] Is a directory: 'logs/a/a'
没有指定文件或目录名称
logging自定义
https://cloud.tencent.com/developer/article/1354396
判断文件是否存在的方法
https://www.cnblogs.com/jhao/p/7243043.html
python获取同级文件夹名
os.path.join(os.path.dirname(os.getcwd()), dir_path)
python 中的循环
for a in rang(10):
python 中join的用法
https://www.cnblogs.com/jsplyy/p/5634640.html
python 中数字转字符串
https://www.cnblogs.com/stuqx/p/7291920.html