初次安装git需要配置用户名和邮箱,否则git会提示:please tell me who you are. 你需要运行命令来配置你的用户名和邮箱: $ git config --global user.name "superGG1990" $ git config --global user.em ...
分类:
系统相关 时间:
2017-09-03 12:10:37
阅读次数:
1126
注意: read() python3按照字符读取 tell() python3按照字节来读取 seek() 设置文件当前位置 ...
分类:
编程语言 时间:
2017-09-02 12:13:07
阅读次数:
122
题目链接:http://codeforces.com/problemset/problem/849/B 题意:给定n个点,每个点坐标(i,yi),求是否存在两条平行线使得所有的点都在这两条平行线上。 题解:两条平行线斜率都是k,我们可以先确定两条平行线的两个基点(最左边的那个点),然后再枚举是不是斜 ...
分类:
其他好文 时间:
2017-09-02 12:12:03
阅读次数:
211
WordPress is known as the most popular blogging platform and content management system. New users are often surprised when we tell them that WordPress ...
分类:
其他好文 时间:
2017-08-26 19:54:51
阅读次数:
256
http://poj.org/problem?id=1679 Description Given a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tre ...
分类:
其他好文 时间:
2017-08-23 17:27:25
阅读次数:
186
The Unique MST Given a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tree): Consider a connected, un ...
分类:
其他好文 时间:
2017-08-20 18:15:56
阅读次数:
276
f = open("yesterday", 'r', encoding="utf-8") # 文件句柄 print(f.tell()) #按字符计数 print(f.read(5)) #读5个字符,并打印 print(f.tell()) #按字符计数 ...
分类:
其他好文 时间:
2017-08-20 14:07:55
阅读次数:
146
验证码 验证码(CAPTCHA)是“Completely Automated Public Turing test to tell Computers and Humans Apart”(全自动区分计算机和人类的图灵测试)的缩写,是一种区分用户是计算机还是人的公共全自动程序。可以防止:恶意破解密码、 ...
分类:
Web程序 时间:
2017-08-20 10:05:46
阅读次数:
218
read()会让你读取的光标变成最后。 tell()把你现在文件的句柄的指针打印出来。文件的开头指针位置是0 72的意思代表字符的个数。下面的例子,只读取5个字符串个数: 如果你想把光标移回去,移动到首位f.seek(0) f.detach()在文件还没关闭之前,把文件编码从GBK改成UTF-8 f ...
分类:
其他好文 时间:
2017-08-19 20:04:36
阅读次数:
168
Jim has a balance and N weights. (1≤N≤20)(1≤N≤20) The balance can only tell whether things on different side are the same weight. Weights can be put o ...
分类:
其他好文 时间:
2017-08-19 11:13:15
阅读次数:
211