Bioinformatics Programming Using Python Chapter 6
Working with Text: textwrap
# Returns a copy of the string text with whitespace common to all of its lines re- moved textwrap.dedent(text) ## useful in dealing with FASTA files # break up seq to a list of 80-line strings textwrap.wrap(seq, 80) # insert newlines every 80 characters textwrap.fill(seq, 80)
Persistent Storage
The dbm module provides an interface to the Unix “(n)dbm” library. Dbm objects behave like mappings (dictionaries), except that keys and values are always strings.
"r" Open existing database for reading only (default)
"w" Open existing database for reading and writing
"c" Open database for reading and writing, creating it if it doesn’t exist
"n" Always create a new, empty database, open for reading and writing
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/yun/37538.html
摘要:机器学习深度学习与自然语言处理领域推荐的书籍列表人工智能深度学习与相关书籍课程示例列表是笔者系列的一部分对于其他的资料集锦模型开源工具与框架请参考。 showImg(https://segmentfault.com/img/remote/1460000014946199); DataScienceAI Book Links | 机器学习、深度学习与自然语言处理领域推荐的书籍列表 sho...
阅读 1723·2023-04-25 21:50
阅读 2398·2019-08-30 15:53
阅读 739·2019-08-30 13:19
阅读 2721·2019-08-28 17:58
阅读 2399·2019-08-23 16:21
阅读 2632·2019-08-23 14:08
阅读 1333·2019-08-23 11:32
阅读 1412·2019-08-22 16:09