上一页 1 ··· 35 36 37 38 39
摘要: random模块用来生成随机的数字或字母 用random写个小程序,生成随机验证码 小程序的执行效果 阅读全文
posted @ 2017-09-21 18:46 Sch01aR# 阅读(221) 评论(0) 推荐(0) 编辑
摘要: #-*- coding:utf-8 -*- __author__ = "MuT6 Sch01aR" import time import datetime print datetime.datetime.now() #打印现在时间 print datetime.datetime.now() + da 阅读全文
posted @ 2017-09-21 18:39 Sch01aR# 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #-*- coding:utf-8 -*- __author__ = "MuT6 Sch01aR" import shutil shutil.copyfileobj('D:\\3.txt','D:\\4.txt') #将文件内容拷贝到另一个文件中,可以部分内容 shutil.copyfile('D: 阅读全文
posted @ 2017-09-21 18:36 Sch01aR# 阅读(549) 评论(0) 推荐(0) 编辑
摘要: #-*- coding:utf-8 -*- __author__ = "MuT6 Sch01aR" import os print os.getcwd() # 获取当前工作目录,即当前python脚本工作的目录路径 os.makedirs('D:\\b\\c\\d') # 可生成多层递归目录 os. 阅读全文
posted @ 2017-09-21 17:40 Sch01aR# 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Zip压缩 Zip解压 Tar压缩 Tar解压 阅读全文
posted @ 2017-09-21 17:31 Sch01aR# 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 到 https://natapp.cn/#download 下载客户端(根据自己的系统下载),然后注册一下用户,需要实名认证,然后开一下隧道 下载完成后,解压文件,并打开文件夹 然后运行,输入命令./natapp -authtoken=********6a49 (这里是隧道的id,根据自己的填写) 阅读全文
posted @ 2017-09-20 18:19 Sch01aR# 阅读(1778) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39