f.tell #获取指针位置 f.seek(1) #调整指针位置 f.writ() #往文件里面些东西 并切指针到最后 r.read() #读文件 f.open('file.name','r+',encoding='utf-8') #以r+模式打开文件 # r+先读完文件再写(往头部写文件), w+ ...
分类:
编程语言 时间:
2016-05-24 22:45:17
阅读次数:
250
When we covered port scanning a short while ago we discovered how to tell which ports had processes listening upon them, via port scanning. What we di... ...
分类:
其他好文 时间:
2016-05-24 19:07:36
阅读次数:
171
手头一台Thinkpad t450s 标配win7 home,到手后安装成win7旗舰版本,检查系统硬盘,还有一个SSD 容量16G的硬盘显示为Recovery,实际并未使用。 用作cache expresscache提高系统速度: 具体出处: Y500 - How do I tell if aut ...
我在前面几篇文章中详细介绍了Git命令行的使用《Git学习札记》《Git学习札记——进阶》,以及使用Xcode中自带的Git可视化工具的使用《Xcode中git的使用方法介绍与"Please
tell me who you are"问题的解决方案》。对于Git的初学者,个人建议先学习Git命令行,然后再去使用图形化工具,这样才会对整个Git的工作流有一个完整的了解。今天我们要来学习的工具是So...
分类:
其他好文 时间:
2016-05-18 10:53:55
阅读次数:
183
When the refersh button is clicked, we need to tell the waiting service worker to replace the current service worker right away. Then we refresh the p ...
分类:
其他好文 时间:
2016-05-17 06:24:53
阅读次数:
227
DescriptionGiven a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tree): Consider a connected, undirected graph G = (V, E). A spanning tree of G is a su...
分类:
其他好文 时间:
2016-05-13 03:52:48
阅读次数:
211
我在前面几篇文章中详细介绍了Git命令行的使用《Git学习札记》《Git学习札记——进阶》,以及使用Xcode中自带的Git可视化工具的使用《Xcode中git的使用方法介绍与"Please tell me who you are"问题的解决方案》。对于Git的初学者,个人建议先学习Git命令行,然后再去使用图形化工具,这样才会对整个Git的工作流有一个完整的了解。今天我们要来学习的工具是Sour...
分类:
其他好文 时间:
2016-05-12 22:43:50
阅读次数:
147
Binary String Matching
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述 Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a sub...
分类:
其他好文 时间:
2016-05-12 21:27:31
阅读次数:
170
The Unique MST Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 26454 Accepted: 9457 Description Given a connected undirected graph, tell if ...
分类:
其他好文 时间:
2016-05-10 18:35:36
阅读次数:
143
键盘输入:raw_input()input()[可以执行命令]打开文件:file=open(“filename”,“方式”])属性:file.closed\file.mode\file.name关闭文件:file.close()字符串写入文件:file.write("Helloworld!\n")读取文件内容:file.read(a)[读取a个字节]文件定位:file.tell()当前位..
分类:
编程语言 时间:
2016-05-06 02:29:12
阅读次数:
240