【发布时间】:2020-06-23 15:43:49
【问题描述】:
我尝试使用下面的代码创建一个文件,但是当我尝试在我的驱动器中搜索它时它不起作用。如果您需要查看完整内容,这是我的代码的链接。 https://colab.research.google.com/drive/1N436bntHOf146ZMGVBeSh5EXBuYAjvQY?usp=sharing
这是我用来创建和编写文件的代码。
output = open("sequences.fasta", "w")
output.writelines('>' + firstheader + '\n' + seq1 + '\n')
output.writelines('>' + secondheader + '\n' + seq2.upper() + '\n')
output.writelines('>' + thirdheader + '\n' + seq3.replace('-', '') + '\n')
【问题讨论】:
标签: python python-3.x file google-colaboratory