操作系统服务:其它模块
2017-08-14 00:00
316 查看
http://blog.csdn.net/pipisorry/article/details/52454579
IO模块
16.2.io— Core tools for working with streams16.2.1. Overview16.2.1.1. Text I/O16.2.1.2. Binary I/O16.2.1.3. Raw I/O16.2.2. High-level Module Interface16.2.2.1. In-memory streams16.2.3. Class hierarchy16.2.3.1. I/O Base Classes16.2.3.2. Raw File I/O16.2.3.3. Buffered Streams16.2.3.4. Text I/O16.2.4. Performance16.2.4.1. Binary I/O16.2.4.2. Text I/O16.2.4.3. Multi-threading16.2.4.4. Reentrancy
python使用字符串构建stdin对象
{不知道有没有其它更好的方法}python直接在代码中读入字符串到stdin中import sys, io, re sys.stdin = io.StringIO('''4,6 8 9 6 5 9,7 8,5 8,4 9,3 7,3 7,2 ''') a = [] while True: try: ai = input() a.append(ai) except: break print(a)或者input()一下就调用一下写好的程序!Note: 如果是python2则字符串要是unicode,即io.StringIO(u'''*******''')[
io.
StringIO(initial_value='',newline='\n')][io — Core tools for working with streams]
皮皮Blog
其它模块
16.4.argparse— Parser for command-line options, arguments and sub-commands16.4.1. Example16.4.1.1. Creating a parser16.4.1.2. Adding arguments16.4.1.3. Parsing arguments16.4.2. ArgumentParser objects16.4.2.1. prog16.4.2.2. usage16.4.2.3. description16.4.2.4. epilog16.4.2.5. parents16.4.2.6. formatter_class16.4.2.7. prefix_chars16.4.2.8. fromfile_prefix_chars16.4.2.9. argument_default16.4.2.10. allow_abbrev16.4.2.11. conflict_handler16.4.2.12. add_help16.4.3. The add_argument() method16.4.3.1. name or flags16.4.3.2. action16.4.3.3. nargs16.4.3.4. const16.4.3.5. default16.4.3.6. type16.4.3.7. choices16.4.3.8. required16.4.3.9. help16.4.3.10. metavar16.4.3.11. dest16.4.3.12. Action classes16.4.4. The parse_args() method16.4.4.1. Option value syntax16.4.4.2. Invalid arguments16.4.4.3. Arguments containing
-16.4.4.4. Argument abbreviations (prefix matching)16.4.4.5. Beyond
sys.argv16.4.4.6. The Namespace object16.4.5. Other utilities16.4.5.1. Sub-commands16.4.5.2. FileType objects16.4.5.3. Argument groups16.4.5.4. Mutual exclusion16.4.5.5. Parser defaults16.4.5.6. Printing help16.4.5.7. Partial parsing16.4.5.8. Customizing file parsing16.4.5.9. Exiting methods16.4.6. Upgrading optparse code16.5.
getopt— C-style parser for command line options16.9.
getpass— Portable password input16.10.
curses— Terminal handling for character-cell displays16.10.1. Functions16.10.2. Window Objects16.10.3. Constants16.11.
curses.textpad— Text input widget for curses programs16.11.1. Textbox objects16.12.
curses.ascii— Utilities for ASCII characters16.13.
curses.panel— A panel stack extension for curses16.13.1. Functions16.13.2. Panel Objects16.14.
platform— Access to underlying platform’s identifying data16.14.1. Cross Platform16.14.2. Java Platform16.14.3. Windows Platform16.14.3.1. Win95/98 specific16.14.4. Mac OS Platform16.14.5. Unix Platforms16.15.
errno— Standard errno system symbols16.16.
ctypes— A foreign function library for Python16.16.1. ctypes tutorial16.16.1.1. Loading dynamic link libraries16.16.1.2. Accessing functions from loaded dlls16.16.1.3. Calling functions16.16.1.4. Fundamental data types16.16.1.5. Calling functions, continued16.16.1.6. Calling functions with your own custom data types16.16.1.7. Specifying the required argument types (function prototypes)16.16.1.8. Return types16.16.1.9. Passing pointers (or: passing parameters by reference)16.16.1.10. Structures and unions16.16.1.11. Structure/union alignment and byte order16.16.1.12. Bit fields in structures and unions16.16.1.13. Arrays16.16.1.14. Pointers16.16.1.15. Type conversions16.16.1.16. Incomplete Types16.16.1.17. Callback functions16.16.1.18. Accessing values exported from dlls16.16.1.19. Surprises16.16.1.20. Variable-sized data types16.16.2. ctypes reference16.16.2.1. Finding shared libraries16.16.2.2. Loading shared libraries16.16.2.3. Foreign functions16.16.2.4. Function prototypes16.16.2.5. Utility functions16.16.2.6. Data types16.16.2.7. Fundamental data types16.16.2.8. Structured data types16.16.2.9. Arrays and pointers皮皮Blogfrom: http://blog.csdn.net/pipisorry/article/details/52454579ref: [16. Generic Operating System Services]
相关文章推荐
- 操作系统服务:其它模块
- 操作系统服务:其它模块
- 操作系统服务:OS模块
- 操作系统服务:OS模块
- 操作系统服务:logging日志记录模块
- 操作系统服务:OS模块
- 操作系统服务:time时间模块+datetime模块
- 操作系统服务:logging日志记录模块
- SMP3.0学习笔记之十九 使用REST API在任何操作系统上消费SMP的OData服务
- windows操作系统服务管理
- Debian Linux操作系统下启动Telnet服务
- 操作系统验证连接SQL Server Express发布服务报“Server Object instance on machine server is created with errors ,Bad login User”
- Hadoop 2.0 Yarn代码:NodeManager端代码分析_NM端各服务模块的启动
- Azure学习笔记(1)服务模块
- centos7.2 源码编译安装nginx,实现tcp反向代理,不中断服务新增编译模块
- linux命令:iptables、modprobe装载模块、网络防火墙服务
- atitit.TokenService token服务模块的设计
- 【操作系统 - 1】先来先服务FCFS和短作业优先SJF进程调度算法
- 如何设置操作系统处于最佳性能?此方法可以取消系统自带的界面渲染及其它多余的辅助功能.