内在影响 环境:window 10,docker2.3.0.2,vs 2019 外部资源:mssql(2016),reides 发布内容:web api (http:若创建时点击了支持https也没有关系,不影响发布http) 正常步骤: 1.右键点击项目->添加->支持docker 2.修改Doc ...
分类:
Web程序 时间:
2020-07-21 21:27:13
阅读次数:
249
Python open() 方法用于打开一个文件,并返回文件对象,在对文件进行处理过程都需要使用到这个函数,如果该文件无法被打开,会抛出 OSError。使用 open() 方法一定要保证关闭文件对象,即调用 close() 方法。 使用python的with语句 实现在处理文件时,无论是否抛出了异... ...
分类:
编程语言 时间:
2020-07-21 09:48:17
阅读次数:
67
#include "mainwindow.h" #include #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { //连接数据库 QS ...
分类:
数据库 时间:
2020-07-21 09:45:47
阅读次数:
201
name = ["test","测试"]data = {}try: # open("oooo.txt") # name[3] # data["name"] a = 1 print(a)except (KeyError,IndexError) as e: print("没有这个key", e)exce ...
分类:
编程语言 时间:
2020-07-21 01:00:47
阅读次数:
95
mode是一个可选的字符串,它指定文件的模式已打开。它默认为“r”,这意味着可以在文本中阅读模式。其他常用值是“w”用于写入(如果它已经存在),用于创建和写入新文件的“x”,以及'a'表示附加(在某些Unix系统上,表示所有写入追加到文件末尾,而不考虑当前的查找位置)。在文本模式下,如果未指定编码, ...
分类:
编程语言 时间:
2020-07-20 22:53:59
阅读次数:
110
ubuntu16.04 编译opencv CUDA, CUDNN gpu加速
分类:
其他好文 时间:
2020-07-20 17:20:16
阅读次数:
171
python3版本 import datetimeimport requestsimport osimport time log_name="client-quality.log" def appendStrToFile(filePath, string): with open(filePath, ...
分类:
Web程序 时间:
2020-07-20 15:31:17
阅读次数:
89
1 # r 读 2 f = open('十多年',mode='r',encoding='utf-8') 3 re = f.read() 4 print(re) 5 f.close() 6 7 # w 写 8 f = open('miaoge.txt',mode='w',encoding='utf-8 ...
分类:
其他好文 时间:
2020-07-20 13:21:47
阅读次数:
285
因为是要保存utf-8形式,所以: 写: with open('test.txt','wb+') as f: f.write('字符串'.encode('utf-8')) 读: with open('test.txt','rb+') as f: f.read().decode('utf-8') #默 ...
分类:
其他好文 时间:
2020-07-20 10:25:14
阅读次数:
69
题:http://acm.hdu.edu.cn/showproblem.php?pid=6725 分析:给节点选值肯定是选边界值。假设由节点是选中间值,那么肯定有比它选值更好的值,所以把选的可能定为2个。 #include<bits/stdc++.h> using namespace std; #d ...
分类:
其他好文 时间:
2020-07-20 00:01:14
阅读次数:
96