defer是延迟执行。如果存在多个defer,运行顺序是先进后出,属于堆栈结构 f, err := os.Create(fileName) if err != nil { fmt.Println("Create file failed:", err) return nil, err } defer ...
分类:
编程语言 时间:
2021-07-05 19:08:05
阅读次数:
0
print()函数学习 print() 方法用于打印输出,它的函数语法如下: print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False) 参数的具体含义如下: objects --表示输出的对象。输出多个对象时,需要用逗号(,)分 ...
分类:
编程语言 时间:
2021-07-05 18:49:38
阅读次数:
0
QFile 0、说明 QFile是读写文件的类,这里的文件包括文本文件、二进制文件、资源文件。 通常情况下,文件读写使用QFile、QTextStream、QDataStream就够了。 file name在构造QFile时传入,或者通过setFileName()自己设置。不管什么OS,QFile中 ...
分类:
其他好文 时间:
2021-07-05 18:20:36
阅读次数:
0
1、官网下载UnixODBC:unixODBC 2.3.2 麒麟官网:http://download.cs2c.com.cn/neokylin/desktop/development/5.4/ls_64/os/Packages/ 龙芯官网http://ftp.loongnix.org/os/loon ...
分类:
数据库 时间:
2021-07-05 18:16:03
阅读次数:
0
import os def traverse_dir(path): for root, dirs, files in os.walk(path): for dir in dirs: dir_path = os.path.join(root, dir) print(dir_path) traverse ...
分类:
其他好文 时间:
2021-07-05 17:23:58
阅读次数:
0
无论学习任何漏洞,都要明白一句话:函数决定漏洞性质,变量决定存不存在漏洞 一,本质 1,漏洞函数:$sql="select * from sys_article where id = $id" 2,可控变量:$id=$_GET['id'];(其它层面的先不考虑) 3,保护: 过滤关键字,进行函数判断 ...
分类:
数据库 时间:
2021-07-05 17:05:47
阅读次数:
0
python-迭代器生成器 python 三大利器, 迭代器,生成器和装饰器 迭代是Python中常用且非常强大的一个功能,可以被for循环的就是可迭代的,目前有字符串,列表,元组,字典,集合。 通过使用两个单独方法来实现的;它们被用于允许用户自定义类对迭代的支持。 可迭代对象iterable 是P ...
分类:
编程语言 时间:
2021-07-05 16:49:24
阅读次数:
0
1、去树莓派官网下载镜像 https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit 2、去github上下载 https://github.com/dhruvvyas90/qemu-rpi-kerne ...
import pymysql,xlwt def export_excel(table_name): host,user,passwd,db='192.168.1.152','root','myjcyf','us_sys' coon=pymysql.connect(host=host,user=use ...
分类:
其他好文 时间:
2021-07-01 17:27:29
阅读次数:
0
#!/usr/bin/python # -*- coding: UTF-8 -*- # @auther gaocan 809900210@qq.com import sys import os import re import codecs ''' Codec: See Python`s Stand ...
分类:
其他好文 时间:
2021-07-01 17:19:46
阅读次数:
0