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
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/37538.html
摘要:機(jī)器學(xué)習(xí)深度學(xué)習(xí)與自然語言處理領(lǐng)域推薦的書籍列表人工智能深度學(xué)習(xí)與相關(guān)書籍課程示例列表是筆者系列的一部分對(duì)于其他的資料集錦模型開源工具與框架請(qǐng)參考。 showImg(https://segmentfault.com/img/remote/1460000014946199); DataScienceAI Book Links | 機(jī)器學(xué)習(xí)、深度學(xué)習(xí)與自然語言處理領(lǐng)域推薦的書籍列表 sho...
閱讀 1784·2023-04-25 21:50
閱讀 2429·2019-08-30 15:53
閱讀 774·2019-08-30 13:19
閱讀 2752·2019-08-28 17:58
閱讀 2476·2019-08-23 16:21
閱讀 2709·2019-08-23 14:08
閱讀 1384·2019-08-23 11:32
閱讀 1448·2019-08-22 16:09