<!-- 数据源配置1 --> <bean id="testDataSource1" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close"> <property name="d ...
分类:
编程语言 时间:
2017-10-16 12:15:35
阅读次数:
168
早上大仙童鞋说webstrom不行了,吓得我赶紧打开好久没用的webstrom看一下,果然打不开了,然后就整理了一下我的激活方法,希望对大家有用。 一、安装webstrm 下载软件最好的地方就是官网了,下载地址,选择好系统版本后点击DOWNLOA 二、安装 安装大家都会的噢 三、安装后打开webst ...
分类:
Web程序 时间:
2017-10-16 11:05:57
阅读次数:
266
myFile=open("score.txt",'w') print("Name "+myFile.name) print("Mode "+myFile.mode) myFile.write("GBJ: 100\nKHD : 99\nBBB :89") myFile.close() #Read th... ...
分类:
编程语言 时间:
2017-10-16 09:46:12
阅读次数:
129
1 f=open('my_heart_will_go_on','r',encoding='utf-8')#f 是文件句柄,默认是只读模式r,w是写模式——创建方式,会覆盖文件本身 2 #a是append追加模式不会覆盖原文件本身 3 print(f.tell())#文件打开在什么位置。0代表在文件列 ...
分类:
其他好文 时间:
2017-10-16 02:15:12
阅读次数:
133
一、while循环 while 条件: 条件为真执行的语句 esle: 条件为假执行的语句 猜年龄升级版 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 # Author:Hiuhung Wan 4 age_of_MrWang = 48 5 co ...
分类:
其他好文 时间:
2017-10-16 00:16:44
阅读次数:
190
题目链接:here Text Editor Gym - 101504F emmm...又是链表都写不溜=_=|| 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e6+10; 4 int L[maxn], R ...
分类:
其他好文 时间:
2017-10-16 00:14:15
阅读次数:
230
http://acm.split.hdu.edu.cn/showproblem.php?pid=5919 题意:给出一串序列,每次给出区间,求出该区间内不同数的个数k和第一个数出现的位置(将这些位置组成一个新的序列),输出这里面的第ceil(k/2)个数。 思路: 因为每个区间只需要统计第一个数出现 ...
分类:
其他好文 时间:
2017-10-15 22:28:14
阅读次数:
260
QFile file(fileName); file.open(QIODevice::ReadWrite ); uchar* fpr = file.map(0, file.size());//映射文件,注意这里的file.size()如果大于系统的虚拟内存,就要对文件分块映射 //其实对于大文件一般 ...
分类:
其他好文 时间:
2017-10-15 19:39:40
阅读次数:
317
一个设备在某一时刻只能由一个应用程序打开,为了防止某一设备同时被两个应用程序打开,可以设置一个全局变量。 调用设备的open函数后,变量值减一;调用关闭函数后,变量值加一。 如果第二个程序进入了设备,因为状态值已为0,所以无法打开。 分解该过程,其可分为三项: a.读出变量值 b.修改 c.写会 L ...
分类:
其他好文 时间:
2017-10-15 19:35:10
阅读次数:
156
fopen与读写的标识r,r+,rb+,rt+,w+..... 函数简介 函数功能: 打开一个文件 函数原型:FILE * fopen(const char * path,const char * mode); 相关函数:open,fclose,fopen_s,_wfopen 所需库: <stdio ...
分类:
其他好文 时间:
2017-10-15 19:32:53
阅读次数:
216