刚使用git的小白,提交到仓库报错,原来是没有配置用户名和email。配置完成即可! OK! ...
分类:
其他好文 时间:
2017-11-10 13:47:16
阅读次数:
482
昨天刚配置好的git,今天刚要commit一些修改,就遇到了这个问题** Please tell me who you are.Run git config --global user.email "you@example.com" git config --global user.name "Yo ...
分类:
其他好文 时间:
2017-11-09 11:36:17
阅读次数:
179
添加忽略规则 .gitignore项目Android 添加忽略规则的三种方式From time to time, there are files you don't want Git to check in to GitHub. There are a few ways to tell Git wh... ...
分类:
其他好文 时间:
2017-11-07 12:16:49
阅读次数:
180
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s ...
分类:
其他好文 时间:
2017-11-04 16:19:50
阅读次数:
150
Python 输入: 1. 读和写文件 2. 文件对象的方法: f.read() f.readline() f.readlines() f.write() f.tell() f.seek() f.close() 当你处理完一个文件后, 调用 f.close() 来关闭文件并释放系统的资源,如果尝试再 ...
分类:
编程语言 时间:
2017-11-02 11:32:03
阅读次数:
165
文件操作时,有'r','w','a'不同的操作类型,其中'r'只能读文件,seek(),tell()函数定位读的起始地方。'w'会清空文件内容然后写文件,seek(),tell()函数定位写的起始地方。'a'是append追加模式。seek()没有作用,tell()函数定位末尾处。 f = open ...
分类:
编程语言 时间:
2017-11-01 20:33:21
阅读次数:
285
首先创建一个student类其中包括get,set与构造函数 /** * */package work2; /** * @author Administrator * */public final class Student { private String id; private int tell ...
分类:
编程语言 时间:
2017-10-31 16:45:06
阅读次数:
364
一、文件IO常用操作1、open打开、read读娶write写入、close关闭、readline行读娶readlines多行读娶seek文件指针操作、tell指针位置2、open(file,mode="r",buffering=-1,encoding=None,errors=None,newline=None,closefd=True,opener=None)3、encoding=‘cp936‘/‘utf-8’,一个..
分类:
编程语言 时间:
2017-10-30 21:53:08
阅读次数:
205
close:关闭 flush:强行刷入硬盘 read:有b字符,无b字节 readline:只读取一行 readlines:【“第一行”,“第二行”】 seek:跳转到某个位置 tell:获取指针位置 truncate:截取前面 write:写入 同时打开两个文件 with open("xx","r ...
分类:
其他好文 时间:
2017-10-29 13:51:50
阅读次数:
121
在stackoverflow中有这样一句话: The reflection layer wraps any exception in an InvocationTargetException, which lets you tell the difference between an excepti ...
分类:
编程语言 时间:
2017-10-25 21:20:58
阅读次数:
193