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
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/37538.html
摘要:機器學習深度學習與自然語言處理領域推薦的書籍列表人工智能深度學習與相關書籍課程示例列表是筆者系列的一部分對于其他的資料集錦模型開源工具與框架請參考。 showImg(https://segmentfault.com/img/remote/1460000014946199); DataScienceAI Book Links | 機器學習、深度學習與自然語言處理領域推薦的書籍列表 sho...
閱讀 1772·2023-04-25 21:50
閱讀 2419·2019-08-30 15:53
閱讀 768·2019-08-30 13:19
閱讀 2743·2019-08-28 17:58
閱讀 2465·2019-08-23 16:21
閱讀 2701·2019-08-23 14:08
閱讀 1374·2019-08-23 11:32
閱讀 1439·2019-08-22 16:09