Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在python3.5中,如何生成一个包含数据但不包含任何注释的列表?
我试过使用:
list1=[] if not startswith("#"): list1.append(data)
但数据也是一个列表。明显有断线。