0

在python3.5中,如何生成一个包含数据但不包含任何注释的列表?

我试过使用:

list1=[]
if not startswith("#"):
    list1.append(data)

但数据也是一个列表。明显有断线。

4

0 回答 0