windows下监控文件系统的变化,用python很方便。实例代码如下,很简单,也不多说了。
import os
import win32file
import win32con
ACTIONS = {
1 : "Created",
2 : "Deleted",
3 : "Updated",
4 : "Renamed from something",
5 : "...
分类:
编程语言 时间:
2014-10-11 11:56:35
阅读次数:
447
One of our best friends is getting married and we all
are nervous because he is the first of us who is doing
something similar. In fact, we have never assisted
to a wedding, so we have no clothes o...
分类:
其他好文 时间:
2014-10-10 01:16:33
阅读次数:
274
Problem DescriptionCorrupt governors always find ways to get dirty money. Paint something, then sell the worthless painting at a high price to someon....
分类:
其他好文 时间:
2014-10-09 22:48:08
阅读次数:
269
1, 通过ping 命令,获取远程服务器ipping something.server.name2, 通过qwinsta命令,获取远程服务器当前连接会话qwinsta /server:192.168.0.83, 用logoff命令,把远程会话终止logoff /server:14.128.104.1...
分类:
其他好文 时间:
2014-10-09 15:28:43
阅读次数:
145
How to Disable SELinuxYou've setup a new system, or installed something new on your Linux system and its not working. You get the feeling that SELinux...
分类:
系统相关 时间:
2014-10-07 02:00:12
阅读次数:
403
//结构示例:public struct Person{ string Name; int height; int weight}public bool overWeight(){ //implement something} 类示例: public class Test...
分类:
其他好文 时间:
2014-09-29 21:44:21
阅读次数:
167
1、首先说一下canvas类: Class OverviewThe Canvas class holds the "draw" calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a ...
分类:
移动开发 时间:
2014-09-28 11:11:01
阅读次数:
288
在Python中有两种注释,一种是普通注释,另一种是文档注释。普通注释是使用#开头1 print('output something') # here is comment而Python中多行注释也是使用#1 # comment 12 # comment 23 # comment 3而文档注释则是使...
分类:
编程语言 时间:
2014-09-28 03:05:00
阅读次数:
176
有时我们创建的托盘图标会无缘无故的消失了,搜索了下谷歌,发现是explorer.exe有时会记不住增加的托盘图标,当它记不住时,会发送消息询问窗口:有没有需要增加托盘图标的?然后你的窗口重新做一次增加托盘图标的动作即可。以下是原文:
When you’re a programmer, it seems like you learn something new every day. One o...
分类:
编程语言 时间:
2014-09-25 19:26:47
阅读次数:
293
You’rereadytorunyourfirsttopology!Ifyoucreateafileatsrc/main/resources/words.txtwithonewordperline,youcanrunthetopologywiththiscommand:mvnexec:java-Dexec.mainClass="TopologyMain"-Dexec.args="src/main/resources/words.txt"Forexample,ifyouusethefollowingwords..
分类:
其他好文 时间:
2014-09-24 13:00:17
阅读次数:
191