摘要:
1.首先使用datetime模块的datetime.now()方法获取当前时间,使用strftime()方法对获取到的日期格式化2.使用open()方法创建相应的文件3.直接上代码如下 import os import datetime import time while True: path = 阅读全文
摘要:
mysql总结 1.数据库的基础知识 安装 建库 create database db default charset utf8; #创建一个表 show databses; #展示所有的数据库 drop database db #删除表 建表 show tables #展示所有的表 mysql - 阅读全文
摘要:
from rest_framework.authentication import BaseAuthentication from api import models from rest_framework import exceptions class GeneralAuthentication( 阅读全文