自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 python 图片手绘风格转换

from PIL import Imageimport numpy as npif __name__ == '__main__': # turn rgb to gray image a = np.array(Image.open('tower.jpg').convert('L')).astype('float') # gray image b = Ima...

2020-04-29 14:25:40 459

原创 使用django_apscheduler为django设置定时任务

The issue I suspect your having is how to trigger the startup of that in Django. You have multiple options, mostly consisting of “putting it somewhere it will be run”. For example, add it to the botto...

2020-04-14 09:56:50 557

原创 使用layui时间日期选择器

<link href="{% static 'layui-v2.5.6/layui/css/layui.css' %}" rel="stylesheet"><input type="text" name="time" class="layui-input" id="test5" placeholder="yyyy-MM-dd HH:mm:ss"><script s...

2020-04-09 15:25:12 1050

原创 python删除文件夹下的指定文件

使用python的os库,十分的方便。 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) BASE_DIR = os.path.join(BASE_DIR, 'ios_inspection_file') path = BASE_DIR for maindir, subdir, file_name_list ...

2020-04-09 13:37:09 234

原创 获取django model的所有列名

使用django model类的原生方法。带有__的方法如__dic__,在很多环境下,会简化操作。 l1 = Device.objects.all() l2 = [] # columns = [key for key in l1[0].__dict__.keys() if key != "_state"] for item in l1: temp =...

2020-04-08 19:01:00 1297

原创 jquery datatable 使用

<div class="row"> <table id="example" class="display" style="width:100%"> <thead> <tr> <th>id</th> <th>ip</th> ...

2020-04-08 18:57:56 88

原创 python 格式化 本地时间和国际标准时间

import timeif __name__ == '__main__': print(time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime())) print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()))

2020-04-08 16:37:45 1302

原创 $(...)DataTable is not defined

发现很多jquery的插件都有这个问题。如以下的代码$(document).ready(function() { $('#example').DataTable( { "ajax": '../ajax/data/arrays.txt' } );} );但是去掉外部的函数就好了$('#example').DataTable( { 'ajax': '...

2020-04-08 15:51:45 1618

原创 post方法获取name相同的多个标签值

使用getlist方法group_id = request.POST.get('group_id')commands_list = request.POST.getlist('command')

2020-04-08 15:31:47 871

原创 django 判断数据库中是否有某个元素

if DeviceGroup.objects.filter(group_name=name): return HttpResponse(json.dumps('fail'))

2020-04-08 15:30:21 2406

原创 bootstrap 跳转页面后,防止navbar收回。

<li class="nav-parent nav-active active"><a href=""><i class="fa fa-list-ul"></i> <span>设备管理</span></a> <ul class="children" style="display: bloc...

2020-04-08 10:27:05 315

原创 使用dom操作,动态添加节点

使用dom操作,动态添加节点。值得注意的是,节点的style需要重新写在css文件中,使用父类的bootstrap类会出错。另发现 **commands = request.POST.getlist(‘command’)**这个函数可以获取相同name的多个标签的值。 // creating checkbox element let input...

2020-04-07 18:27:57 293

原创 windows iis(internet information service) 添加匿名ftp站点

首先 搜索框中输入 控制面板 后回车 -----> 点击 程序 -----> 选择 启用或关闭Windows功能 -----> 找到 Intenet Information Services -----> 勾选 FTP服务 所有内容以及 Web管理工具 下的 IIS 管理控制台 确定之后会安装该功能在搜索框中搜索 IIS -----> 左...

2020-04-06 12:37:35 324

原创 使用potplayer 录制视频

右键主窗口,选择视频-》录制视频。有些设置可能需要右键主窗口 打开-》》设备设置。(可选)开始录制视频。

2020-04-05 19:49:48 1754

原创 python smtp发送文件内容

# Import smtplib for the actual sending functionimport smtplib# Import the email modules we'll needfrom email.message import EmailMessagetextfile = '/home/wangkuo/PycharmProjects/NetworkProtocolI...

2020-04-02 16:21:04 283

原创 获取jquery插件jexcel所有元素的值

//取得Excel每个单元格内容 $(".jexcel").find("tr").each(function (i, v) { var tdArray = $(this).children(); if (i == 0) return true;//跳出表头,进行下次循环 var ...

2020-04-02 10:04:59 907

slavoj-zizek-the-sublime-object-of-ideology.pdf

slavoj-zizek-the-sublime-object-of-ideology.pdf

2023-05-29

Hegel-Phil-of-Right.pdf

Hegel-Phil-of-Right.pdf

2023-05-29

schelling-system-of-transcendental-idealismpdf-pdf-free.pdf

schelling-system-of-transcendental-idealismpdf-pdf-free.pdf

2023-05-29

空空如也

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

TA关注的人

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