Am .07.2016, 23:41 Uhr, schrieb Igor Barboza <
igorbar...@gmail.com>:
> Guys I need some help again =(
>
> here is my current code... as I read the txt file, i need to put the
> values
> as Int/Float or str...Int is ok, as well srt, but I can't solve a problem
> with some float...
>
> 366351.77 or -6000.00 for example still being inserted as a str in the
> sheet... =((
>
> I don't know if the problem is when i'm reading the content of the txt
> file
> or something like this...
>
>
> import sys
> import openpyxl
>
> delimitador, caminho, destino = sys.argv[1], sys.argv[2], sys.argv[3]
> xls = openpyxl.Workbook()
> sheet = xls.active
> sheet.column_dimensions['A']
> txt = open(caminho)
>
>
> def is_float(s):
> result = False
> if s.count(".") == 1:
> if s.replace(".", "").isdigit():
> result = True
> return result