This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import time | |
import re | |
def detector(dir, sec): | |
"""可以采用多线程 | |
一个时间间隔扫描同一个文件夹,返回不同的内容""" | |
origin = set([_f[2] for _f in os.walk(dir)][0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import xdrlib | |
import xlrd | |
import xlwt | |
def open_excel(file): | |
try: | |
data = xlrd.open_workbook(file) | |
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="cheng.touch" > | |
<!-- SDCard中创建与删除文件权限 --> | |
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> | |
<!-- 向SDCard写入数据权限 --> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
<application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.ssfb" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="11" | |
android:targetSdkVersion="18" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |