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.
从 astropy.table 遍历 Table 对象的行的最聪明的方法是什么?
是不是像:
for row in table: ....
?
迭代表行按预期工作:
>>> from astropy.table import Table >>> table = Table([[1, 2, 3], ['a', 'b', 'c']]) >>> for row in table: ... print row['col0'], row['col1'] ... 1 a 2 b 3 c