arcgis影像批量裁剪代码
摘要:# -*- coding:utf-8 -*- # Name: ExtractByMask_Ex_02.py # Description: Extracts the cells of a raster that correspond with the areas # defined by a mask. # Requirements: Spatial Analyst Extension # ...
阅读全文
posted @
2017-12-08 20:58
J.M.Liu
阅读(2481)
推荐(0)
pycharm Python解释器的配置--可以指定批处理文件为解释器
摘要:这样就可以很方便的配置一些环境变量了,很方便很有创意的功能,再次Mark一下以防忘记
阅读全文
posted @
2017-05-17 15:39
J.M.Liu
阅读(280)
推荐(0)
python中时间对象生成及时间格式的转换
摘要:1.将字符串的时间转换为时间戳 方法: a = "2013-10-10 23:40:00" 将其转换为时间数组 import time timeArray = time.strptime(a, "%Y-%m-%d %H:%M:%S") 转换为时间戳: timeStamp = int(time.mktime(t...
阅读全文
posted @
2017-04-14 21:14
J.M.Liu
阅读(949)
推荐(0)
给python解释器本身添加注册表
摘要:import sys from _winreg import * # tweak as necessary version = sys.version[:3] installpath = sys.prefix regpath = "SOFTWARE\\Python\\Pythoncore\\%s\\" % (version) installkey = "InstallPath" pythonk...
阅读全文
posted @
2017-03-02 22:48
J.M.Liu
阅读(724)
推荐(0)
python移动多个子文件中的文件到一个文件夹
摘要:当一个文件夹在的文件不是直接在一个文件夹的,而是在该文件夹的一个个子文件夹中的时候,就用这段代码实现把全部文件移动到指定文件夹。
阅读全文
posted @
2017-02-24 21:48
J.M.Liu
阅读(917)
推荐(0)
[转]python中对文件、文件夹的操作——os模块和shutil模块常用说明
摘要:转至:http://l90z11.blog.163.com/blog/static/187389042201312153318389/ python中对文件、文件夹的操作需要涉及到os模块和shutil模块。创建文件:1) os.mknod("test.txt") 创建空文件2) open("tes
阅读全文
posted @
2017-02-24 21:38
J.M.Liu
阅读(901)
推荐(0)