自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 Cannot delete or update a parent row: a foreign key constraint fails

执行sql语句时 Cannot delete or update a parent row: a foreign key constraint fails (`function`, CONSTRAINT `function_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `function` (`id`))这时候执行一下SET FOREIGN_KE...

2019-01-18 15:12:49 1846

原创 python爬虫用到的读写ConfigParser模块

config.conf文件[config]account : 1111username : dsffghpassword : aaaaaaview.pyimport ConfigParsernew = ConfigParser.ConfigParser()new.read("config.conf")account = new.get('config', 'account')...

2019-01-09 14:51:26 188

原创 python输入一个日期计算前几个月日期或者后几个月日期的方法

def get_recent_month(dt, months): #这里的months 参数传入的是正数表示往后 ,负数表示往前 month = dt.month - 1 + months year = dt.year + month / 12 month = month % 12 + 1 day = min(dt.day, calendar.monthr...

2019-01-07 15:44:03 6750

原创 centos7安装中文输入法

1.点击root,选择settings2.打开settings,选择区域与语言3.点+点红色框中的输入pinyin 点击add6.关闭settings,点击en,选择chinese

2019-01-04 15:45:33 2674

原创 保留数字几位小数可以用Python format 格式化函数解决

>>> print("{:.2f}".format(3.1415926));3.14

2019-01-04 10:24:26 19711

原创 时间自动补零可以用Python format 格式化函数解决

real_time = str('{:0>2d}'.format(input_time))

2019-01-04 10:20:05 4649

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除