第 10 章 Library

简介:

目录

10.1. 日期与时间
10.2. Python 多线程
10.2.1. threading 高级线程接口
10.2.2. Lock 线程锁
10.2.3. Queue 队列
10.3. syslog
10.3.1. udp client
10.3.2. udp server
10.4. Socket
10.4.1. UDP
10.4.1.1. UDP Server
10.4.1.2. UDP Clinet
10.5. Daemon
10.6. python-memcached
10.7. Pyro - Pyro is short for PYthon Remote Objects
10.8. Python Imaging Library
10.9. getopt – Command line option parsing
10.10. syslog
10.10.1. udp client
10.10.2. udp server
10.11. python-subversion
10.12. SimpleHTTPServer
10.13. fuse-python.x86_64 : Python bindings for FUSE - filesystem in userspace
10.14. Network
10.14.1. gevent - A coroutine-based network library for Python
10.15. TUI
10.15.1. Console
10.15.2. urwid
10.15.3. pycdk
10.15.4. python-newt - A NEWT module for Python
10.16. Python-spdylay - Spdylay Python Extension Module
10.17. mechanize
10.18. zope.testbrowser

10.1. 日期与时间

当前日期

import time	
dt = time.strftime('%Y-%m-%d.%X',time.localtime(time.time()))
print(dt)	
	
	
>>> import time 
>>> dt = time.strftime('%Y-%m-%d.%X',time.localtime(time.time()))
>>> print(dt)
2014-01-23.11:07:28	
	
	





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
3月前
|
并行计算 TensorFlow 算法框架/工具
【Tensorflow】解决 Could not load dynamic library ‘libcudart.so.10.1‘; dlerror: libcudart.so.10.1
原因是CUDA10.1不支持Tensorflow2.2+。那就使用Tensorflow2.0。
86 2
|
6月前
|
机器学习/深度学习 算法 算法框架/工具
Library
Library
37 1
|
JavaScript
dyld: Library not loaded:解决办法
dyld: Library not loaded:解决办法
493 1
|
安全 Ubuntu
LD_LIBRARY_PATH It can compromise security
LD_LIBRARY_PATH It can compromise security
99 1
|
Python
ld: library not found for -lssl
ld: library not found for -lssl
77 0
|
并行计算 编译器 TensorFlow
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
165 0
static library libs/libvpx/libvpx.a is not portable!
static library libs/libvpx/libvpx.a is not portable!
379 0
Xcode12.x报错: ld: library not found for -lstdc++.6.0.9
错误信息: ld: library not found for -lstdc++.6.0.9 报错原因:Xcode10移除了动态库libstdc
274 0
|
XML 人工智能 SDN