第 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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
24天前
|
机器学习/深度学习 算法 算法框架/工具
Library
Library
15 1
|
7月前
|
JavaScript
dyld: Library not loaded:解决办法
dyld: Library not loaded:解决办法
208 1
|
10月前
|
缓存 关系型数据库 MySQL
Linux环境变量设置(PATH/LIBRARY_PATH/LD_LIBRARY_PATH)
Linux环境变量设置(PATH/LIBRARY_PATH/LD_LIBRARY_PATH)
2760 0
|
Python
ld: library not found for -lssl
ld: library not found for -lssl
57 0
static library libs/libvpx/libvpx.a is not portable!
static library libs/libvpx/libvpx.a is not portable!
300 0
|
安全 Ubuntu
LD_LIBRARY_PATH It can compromise security
LD_LIBRARY_PATH It can compromise security
65 1
|
Ubuntu
Could not load dynamic library 'libcudnn.so.8'
Could not load dynamic library 'libcudnn.so.8'
837 0
Xcode12.x报错: ld: library not found for -lstdc++.6.0.9
错误信息: ld: library not found for -lstdc++.6.0.9 报错原因:Xcode10移除了动态库libstdc
241 0
|
JavaScript Java