Re: 3 number and dot..
- From: Abandoned <besturk@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 13:47:17 -0700
On Oct 31, 10:38 pm, Paul McGuire <pt...@xxxxxxxxxxxxx> wrote:
On Oct 31, 2:58 pm, Abandoned <best...@xxxxxxxxx> wrote:
Hi..
I want to do this:
for examle:
12332321 ==> 12.332.321
How can i do?...
x = (12332321,)
while (x[0]>0): x=divmod(x[0],1000)+x[1:]
(0, 12, 332, 321)x
".".join(map(str,x[1:]))
'12.332.321'
-- Paul
It's very good thank you paul!
.
- References:
- 3 number and dot..
- From: Abandoned
- Re: 3 number and dot..
- From: Paul McGuire
- 3 number and dot..
- Prev by Date: Re: XML DOM, but in chunks
- Next by Date: Re: Method needed for skipping lines
- Previous by thread: Re: 3 number and dot..
- Next by thread: Re: 3 number and dot..
- Index(es):