我使用python3.6,但是对于这项工作,我需要使用Python的旧版本
如果可能的话,我想把这一行(python3.6)转换成一个旧版本:
for uniref in [f">{chunk.rstrip()}"
for chunk in data.split(">")]:
我试过了
for uniref in [">{chunk.rstrip()}"
for chunk in data.split(">").format(chunk.rstrip())]:
但是我收到了这个错误信息AttributeError: 'list' object has no attribute 'format'
目前没有回答
相关问题 更多 >
编程相关推荐