python:index
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
python:index [2014/07/19 22:02] – tkbletsc | python:index [2014/07/19 22:02] – tkbletsc | ||
---|---|---|---|
Line 121: | Line 121: | ||
< | < | ||
- | def parse_table(table_tsv, | + | def recognize_type(v): |
+ | if re.match(r' | ||
+ | return int(v) | ||
+ | if re.match(r' | ||
+ | return float(v) | ||
+ | return v | ||
+ | |||
+ | def parse_table(table_tsv, | ||
table_rows = table_tsv.strip().split(" | table_rows = table_tsv.strip().split(" | ||
Line 163: | Line 170: | ||
</ | </ | ||
- | |||
python/index.txt · Last modified: 2014/07/20 17:48 by tkbletsc