Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
join , split question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
elca  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 09:39
Newsgroups: comp.lang.python
From: elca <high...@gmail.com>
Date: Wed, 4 Nov 2009 01:39:36 -0800 (PST)
Local: Wed 4 Nov 2009 09:39
Subject: join , split question

Hello,
i have some text file list such like following format.
i want to change text format to other format.
 i was upload it pastebin site
http://elca.pastebin.com/d71261168

if anyone help ,much appreciate thanks in advance
--
View this message in context: http://old.nabble.com/join-%2C-split-question-tp26193334p26193334.html
Sent from the Python - python-list mailing list archive at Nabble.com.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Desthuilliers  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 09:25
Newsgroups: comp.lang.python
From: Bruno Desthuilliers <bruno.42.desthuilli...@websiteburo.invalid>
Date: Thu, 05 Nov 2009 10:25:21 +0100
Local: Thurs 5 Nov 2009 09:25
Subject: Re: join , split question
elca a écrit :

> Hello,
> i have some text file list such like following format.
> i want to change text format to other format.
>  i was upload it pastebin site
> http://elca.pastebin.com/d71261168

Dead link.

> if anyone help

With what ?

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Murray-Smith  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 09:54
Newsgroups: comp.lang.python
From: Stuart Murray-Smith <eigh...@gmail.com>
Date: Thu, 5 Nov 2009 11:54:50 +0200
Local: Thurs 5 Nov 2009 09:54
Subject: Re: join , split question

>> Hello, i have some text file list such like following format.
>> i want to change text format to other format.
>>  i was upload it pastebin site
>> http://elca.pastebin.com/d71261168
> Dead link.
> With what ?

http://elca.pastebin.com/d4d57929a

:)


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Desthuilliers  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 14:08
Newsgroups: comp.lang.python
From: Bruno Desthuilliers <bruno.42.desthuilli...@websiteburo.invalid>
Date: Thu, 05 Nov 2009 15:08:06 +0100
Local: Thurs 5 Nov 2009 14:08
Subject: Re: join , split question
Stuart Murray-Smith a écrit :

>>> Hello, i have some text file list such like following format.
>>> i want to change text format to other format.
>>>  i was upload it pastebin site
>>> http://elca.pastebin.com/d71261168

>> Dead link.

>> With what ?

> http://elca.pastebin.com/d4d57929a

Yeah, fine. And where's the code you or the OP (if not the same person)
have problems with ?

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Clements  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 17:40
Newsgroups: comp.lang.python
From: Jon Clements <jon...@googlemail.com>
Date: Thu, 5 Nov 2009 09:40:31 -0800 (PST)
Local: Thurs 5 Nov 2009 17:40
Subject: Re: join , split question
On Nov 5, 2:08 pm, Bruno Desthuilliers <bruno.

I'd certainly be curious to see it, especially with the pagecheck()
line 22 @ http://elca.pastebin.com/f5c69fe41

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
metal  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 00:34
Newsgroups: comp.lang.python
From: metal <metal...@gmail.com>
Date: Thu, 5 Nov 2009 16:34:37 -0800 (PST)
Local: Fri 6 Nov 2009 00:34
Subject: Re: join , split question
On 11月4日, 下午5时39分, elca <high...@gmail.com> wrote:

> Hello,
> i have some text file list such like following format.
> i want to change text format to other format.
>  i was upload it pastebin sitehttp://elca.pastebin.com/d71261168

> if anyone help ,much appreciate thanks in advance
> --
> View this message in context:http://old.nabble.com/join-%2C-split-question-tp26193334p26193334.html
> Sent from the Python - python-list mailing list archive at Nabble.com.

s = """uji708
uhodih
utus29
agamu4
azi340
ekon62
"""

from itertools import cycle
for i, x in zip(cycle(range(3)), s.splitlines()):
    print x + ',',
    if i == 2:
        print

"""
uji708, uhodih, utus29,
agamu4, azi340, ekon62,
"""


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
metal  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 00:46
Newsgroups: comp.lang.python
From: metal <metal...@gmail.com>
Date: Thu, 5 Nov 2009 16:46:04 -0800 (PST)
Local: Fri 6 Nov 2009 00:46
Subject: Re: join , split question
On 11月6日, 上午8时34分, metal <metal...@gmail.com> wrote:

yet another version, a little evil

s = """uji708
uhodih
utus29
agamu4
azi340
ekon62
"""

from itertools import *
print '\n'.join(','.join(x for i, x in g) for k, g in groupby(enumerate
(s.splitlines()), lambda (i, x): i/3))
"""
uji708,uhodih,utus29
agamu4,azi340,ekon62
"""


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
elca  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 02:08
Newsgroups: comp.lang.python
From: elca <high...@gmail.com>
Date: Thu, 5 Nov 2009 18:08:08 -0800 (PST)
Local: Fri 6 Nov 2009 02:08
Subject: Re: join , split question

thanks all!
i was resolved :)

--
View this message in context: http://old.nabble.com/join-%2C-split-question-tp26193334p26225646.html
Sent from the Python - python-list mailing list archive at Nabble.com.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google