摘要: test.py 阅读全文
posted @ 2019-04-10 19:34 anobscureretreat 阅读(6710) 评论(0) 推荐(0)
摘要: #当前文件的路径 pwd = os.getcwd() #当前文件的父路径 father_path=os.path.abspath(os.path.dirname(pwd)+os.path.sep+".") #当前文件的前两级目录 grader_father=os.path.abspath(os.path.dirname(pwd)+os.path.sep+"..") 阅读全文
posted @ 2019-04-10 19:24 anobscureretreat 阅读(572) 评论(0) 推荐(0)
摘要: import os import tarfile def make_targz_one_by_one(output_filename, source_dir): tar = tarfile.open(output_filename,"w:gz") for root,dir,files in os.walk(source_dir): for file in f... 阅读全文
posted @ 2019-04-10 17:32 anobscureretreat 阅读(492) 评论(0) 推荐(0)
摘要: 参考:http://docs.python-requests.org/en/master/user/quickstart/#make-a-request 阅读全文
posted @ 2019-04-10 17:03 anobscureretreat 阅读(500) 评论(0) 推荐(0)
摘要: xml中 android:ems属性 ,作为EditText 默认生成 的属性,其含义是需要编辑的 字符串长度 。 设置为10时,最多编辑 10个em ,一个em单位是 两个inch ,但是随着自动调整,在Android中 em代表‘M’的数量 。 但是 EditText的属性 ,只有在 andro 阅读全文
posted @ 2019-04-10 09:45 anobscureretreat 阅读(1539) 评论(0) 推荐(0)