随笔 - 91  文章 - 0  评论 - 2  阅读 - 44180

随笔分类 -  python

删除30天没有访问过的日志
摘要:import os,random,time,shutillist_dir = os.listdir(r"D:\test1")for file in list_dir: print(file) print(os.path.abspath(file)) os.chdir(r"D:\test1") fil 阅读全文
posted @ 2019-04-03 14:29 SZ_文彬 阅读(97) 评论(0) 推荐(0) 编辑
sqlalchemy多对多关联
摘要:sqlalchemy_many_to_many.py #!-*-coding:utf-8-*-from sqlalchemy import Table,Column,Integer,String,DATE,ForeignKeyfrom sqlalchemy.orm import relationsh 阅读全文
posted @ 2019-04-03 11:45 SZ_文彬 阅读(378) 评论(2) 推荐(0) 编辑
sqlalchemy多外键关联
摘要:sqlalchemy_many_fk.py from sqlalchemy import Integer, ForeignKey, String, Column,create_enginefrom sqlalchemy.ext.declarative import declarative_basef 阅读全文
posted @ 2019-04-03 11:45 SZ_文彬 阅读(246) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示