操作系统服务:其它模块
2016-09-06 23:00
260 查看
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, resys.stdin = io.StringIO('''4,68 9 6 59,78,58,49,37,37,2''')a = []while True:try:ai = input()a.append(ai)except:breakprint(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]
相关文章推荐
- 操作系统服务:其它模块
- 操作系统服务:其它模块
- 操作系统服务:logging日志记录模块
- 操作系统服务:OS模块
- 操作系统服务:time时间模块+datetime模块
- 操作系统服务:logging日志记录模块
- 操作系统服务:OS模块
- 操作系统服务:OS模块
- 没有ASP.NET Web 服务模块
- mosquitto(mqtt)服务部署+redis 认证模块
- Python网络编程:E-mail服务(五)深入理解email模块的message和MIME类
- 项目实训--物流管理项目之客户服务中心模块
- Angular4中的组件、模块、服务、装饰器、控制器
- 详解Ansible服务常用命令模块
- 1、操作系统的概念、特征、功能和提供的服务
- 【操作系统 - 1】先来先服务FCFS和短作业优先SJF进程调度算法
- win7操作系统下使用IIS打开应用程序池报没找到WAS服务
- Windows操作系统必须禁止的10个服务
- 在Ubuntu为Android硬件抽象层(HAL)模块编写JNI方法提供Java访问硬件服务接口
- 阿里云服务器centos7.4操作系统Apache配置https服务