上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 79 下一页
摘要: from datetime import datetime from apscheduler.schedulers.blocking import BlockingScheduler def tick(): print(datetime.now()) if __name__ == '__main__': scheduler = BlockingScheduler(... 阅读全文
posted @ 2018-03-04 11:34 Dsp Tian 阅读(383) 评论(0) 推荐(0)
摘要: import threading import time class myThread (threading.Thread): #继承父类threading.Thread def __init__(self, threadID, name): threading.Thread.__init__(self) self.name = name ... 阅读全文
posted @ 2018-03-04 11:33 Dsp Tian 阅读(355) 评论(0) 推荐(0)
摘要: import requests import bs4 import urllib.request import urllib import os hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHT 阅读全文
posted @ 2018-03-04 11:31 Dsp Tian 阅读(514) 评论(0) 推荐(0)
摘要: 源地址:http://www.cnblogs.com/thinksasa/archive/2013/08/26/3283695.html 方法:新建一个register.py 文件,把一下代码贴进去,保存 (代码来自:http://effbot.org/zone/python-register.ht 阅读全文
posted @ 2018-03-04 11:30 Dsp Tian 阅读(317) 评论(0) 推荐(0)
摘要: # -*- coding: cp936 -*- import sys,os,string d=0; path="F://test" srcfile=os.listdir(path) for i in srcfile: src=path+"//"+i dst=path+"//"+str(d)+".txt" os.rename(src,dst) d=d+1; ... 阅读全文
posted @ 2018-03-04 11:28 Dsp Tian 阅读(417) 评论(0) 推荐(0)
摘要: 分布式程序通常需要运行在一个统一的时间环境里。 转自:http://blog.csdn.net/mengfanzhundsc/article/details/62046562 安装NTP:yum install ntp 配置时间源vi /etc/ntp.confserver 210.72.145.4 阅读全文
posted @ 2018-03-02 12:12 Dsp Tian 阅读(2412) 评论(0) 推荐(0)
摘要: 转自:http://blog.csdn.net/loyachen/article/details/51010688 [系统环境] CentOS release 6.7 (Final) 服务端配置 1. 安装nfs-utils和rpcbind 2.设置开机启动服务 3.启动相关服务 4.创建共享目录 阅读全文
posted @ 2018-03-01 15:56 Dsp Tian 阅读(483) 评论(0) 推荐(0)
摘要: ceshi 阅读全文
posted @ 2018-02-20 15:02 Dsp Tian 阅读(3016) 评论(1) 推荐(1)
摘要: ceshi 阅读全文
posted @ 2018-02-19 17:16 Dsp Tian 阅读(1649) 评论(0) 推荐(1)
摘要: 没考虑各大行星自转轴指向的问题,都是默认指向y轴方向。 阅读全文
posted @ 2018-02-17 21:22 Dsp Tian 阅读(1720) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 79 下一页