how to get val: in DAT Table

hello, i want to read data value on table,

[code]s = op(‘table1’).rows()

for v in s:
print (v)[/code]

but this my result:

[ val:020 cell:(0, 0) owner:/project1/table1] [ val:120 cell:(1, 0) owner:/project1/table1] [ val:220 cell:(2, 0) owner:/project1/table1] [ val:320 cell:(3, 0) owner:/project1/table1] [ val:420 cell:(4, 0) owner:/project1/table1] [ val:520 cell:(5, 0) owner:/project1/table1]

i need only the “val:”, but i don’t want to assign one by one.

rows() returns a (possibly empty) list of rows, each row being a list of (one or multiple) cells.
(see this info on the wiki page of the table dat class)

It seems you want to display the value of the first cell in that list, you could do that like this:

for r in op('table1').rows(): print(r[0].val)