【题目链接】 http://poj.org/problem?id=1703 【算法】 并查集 + 拆点 【代码】 ...
分类:
其他好文 时间:
2018-07-06 21:35:10
阅读次数:
160
http://gitlab.htzq.htsc.com.cn/users/sign_in <!DOCTYPE html><html lang="en" xmlns:th="http://www.thymeleaf.org"><head><title>系统首页</title><meta http-eq ...
分类:
其他好文 时间:
2018-07-05 21:33:30
阅读次数:
180
#coding=utf-8 import os import multiprocessing from time import ctime, sleep from selenium import webdriver class testClass(object): def worker(self, ... ...
分类:
编程语言 时间:
2018-07-03 16:55:40
阅读次数:
279
1.进程的创建 from multiprocessing import Process import time,os def Hi(name): time.sleep(3) print("Hello %s" % name,time.ctime()) print("进程号是 ",os.getpid() ...
分类:
编程语言 时间:
2018-07-02 00:09:11
阅读次数:
162
结果: 一般需要把os.path.dirname()和os.path.abspath()进行结合使用,我们经常会在django的项目配置文件中看到类似的代码: 这里假设该脚本文件为test1.py,绝对路径为:/Users/lowman/test1.py os.path.abspath(__file ...
分类:
编程语言 时间:
2018-07-01 17:46:00
阅读次数:
162
stat指令:文件/文件系统的详细信息显示。 stat命令主要用于显示文件或文件系统的详细信息,该命令的语法格式如下: stat命令-->用来显示文件的详细信息,包括inode, atime, mtime, ctime 适用场景: 查看文件或目录的诸如atime,mtime,ctime等信息即可使用 ...
分类:
系统相关 时间:
2018-06-29 00:05:18
阅读次数:
187
1、时间模块:time、datetime; 1)、时间戳(秒)1970年00:00:00定义为0;time.time() 2)、格式化的时间字符串 3)、元组(struct_time)9个元素:年、月、日、时、分、 秒、周几、一年的第几天0-6、tm_isdst=0; 获取方式:time.local ...
分类:
编程语言 时间:
2018-06-28 22:57:47
阅读次数:
219
importlogginglogging.debug(‘这是一条debug,开始使用日志啦‘)logging.info(‘这是一条info,开始使用日志啦‘)logging.warning(‘这是一条warning,开始使用日志啦‘)logging.error(‘这是一条error,开始使用日志啦‘)logging.critical(
分类:
其他好文 时间:
2018-06-27 23:04:30
阅读次数:
219
【题目链接】 http://poj.org/problem?id=3263 【算法】 若A和B两头牛可以互相看见,那么说明中间的牛的高度都至少比它们少1,因此,我们可以引入一个差分数组c 对于每组关系,我们将c[a+1]减一,c[b]加一 最后,每头牛的最高高度就是 h + c的前缀和 【代码】 ...
分类:
其他好文 时间:
2018-06-27 16:13:26
阅读次数:
168
#ReadManger(c) -> (tool & context) from time import ctime import os import threading import webbrowser class ReadManager(object): def __init__(self, c... ...
分类:
其他好文 时间:
2018-06-25 14:55:55
阅读次数:
155