import configparser code_ = "ft" cfg1 = "C:/" + code_ +".ini" conf = configparser.ConfigParser() conf.read(cfg1) # 读取 try: a = conf.get("标题","字段") pri ...
分类:
其他好文 时间:
2021-01-08 10:55:37
阅读次数:
0
1 f = open("20201212.txt", "w") 2 f.write ("20201212") 3 4 f=open("20201212.txt","r") 5 print(f.read()) 6 f.close() 7 8 f=open("20201212.txt","r") 9 n ...
分类:
编程语言 时间:
2021-01-07 12:03:08
阅读次数:
0
1.read_gate_and_protocol read_ddc mapped/ORCA.ddc ;# note this was created during the unmapped flow current_design ORCA link #source -echo -verbose sc ...
分类:
其他好文 时间:
2021-01-07 11:56:13
阅读次数:
0
提示:Unable to start adb server: error: protocol fault (couldn't read status): Connection reset by peer问题原因:大多数情况是5037端口被占用。5037为adb默认端口。解决办法:查看哪个程序占用了a ...
分类:
其他好文 时间:
2021-01-06 12:06:11
阅读次数:
0
Tasks Task Name Time Limit Memory Limit A Large Digits 2 sec 1024 MB Submit B Gentle Pairs 2 sec 1024 MB Submit C 1-SAT 2 sec 1024 MB Submit D Choose ...
分类:
其他好文 时间:
2021-01-06 11:50:46
阅读次数:
0
一、下载mycat http://dl.mycat.org.cn/ 二、配置server.xml ,主要是mycat的ip 端口及账号密码配置,一般保持默认 三、配置schema.xml ,配置主从节点及数据库表的配置 <mycat:schema xmlns:mycat="http://io.myc ...
分类:
数据库 时间:
2021-01-06 11:48:47
阅读次数:
0
传送 这题乍一看觉得无从下手,但只不过是把两个知识点捏到一块罢了。 判断多个串是否为一个串的子串,首先想到AC自动机:把$K$个模板串建成AC自动机,然后在上面dp(记忆化搜索)。 AC自动机上的每一个节点到根的路径都代表一个前缀,所以令$dp[i][j]$表示模板串匹配到节点$i$,文本串匹配到长 ...
分类:
其他好文 时间:
2021-01-05 10:57:25
阅读次数:
0
学习目标 能够写出Redis中string类型数据的增删改查操作命令 能够写出Redis中hash类型数据的增删改查相关命令 重要文档 Redis 参考命令 Redis 官方文档 数据结构 ...
分类:
其他好文 时间:
2021-01-04 11:02:34
阅读次数:
0
目的如题。确保python中安装了opencv-python模块。如果没有安装,可以参考:https://pypi.org/project/opencv-python/进行安装。话不多少,直接上代码:importcv2cap=cv2.VideoCapture(0)f,frame=cap.read()#此刻拍照cv2.imwrite("example.png",frame)#将拍摄内容保存为png图
分类:
编程语言 时间:
2021-01-02 11:45:12
阅读次数:
0
#1.读本地文件,ANSI为GBK编码 p=open("e:\\a.txt") content=fp.read() print(content) fp.close() #2.读 fp=open("e:\\a.txt","r",encoding="gbk") fp.readlines() fp.clo ...
分类:
编程语言 时间:
2021-01-02 11:43:30
阅读次数:
0