Re: Question about split method

2015-12-05 Thread Peter Pearson
On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: > On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: [snip] >> ss0="1, 2, 4, 8, 16".split(", ") [snip] > Try help(str.split) Or if, like me, you can't remember the magic word "str", ask: help("".split)

Re: Question about split method

2015-12-05 Thread Robert
On Saturday, December 5, 2015 at 2:29:28 PM UTC-5, Peter Pearson wrote: > On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: > > On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: > [snip] > >> ss0="1, 2, 4, 8, 16".split(", ") > [snip] > > Try

Re: Question about split method

2015-12-05 Thread Mark Lawrence
On 05/12/2015 19:51, Robert wrote: On Saturday, December 5, 2015 at 2:29:28 PM UTC-5, Peter Pearson wrote: On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: [snip] ss0="1, 2, 4, 8, 16".split(", ")

Re: Question about split method

2015-12-05 Thread Erik
On 05/12/15 20:27, Mark Lawrence wrote: On 05/12/2015 19:51, Robert wrote: On Saturday, December 5, 2015 at 2:29:28 PM UTC-5, Peter Pearson wrote: On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote:

Question about split method

2015-12-02 Thread Robert
Hi, I learn split method online. When I try to run the line with ss1 beginning, I don't understand why its output of ss1 and ss2. I have check the help about split. It looks like that it is a numpy method. What is the split method parameter (within " ") for? Thanks, ... ss0="1,

Re: Question about split method

2015-12-02 Thread Ian Kelly
On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: > Hi, > > I learn split method online. When I try to run the line with ss1 beginning, > I don't understand why its output of ss1 and ss2. I have check the help > about split. It looks like that it is a numpy method. > What is the

Re: Question about split method

2015-12-02 Thread Robert
On Wednesday, December 2, 2015 at 3:45:34 PM UTC-5, Ian wrote: > On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: > > Hi, > > > > I learn split method online. When I try to run the line with ss1 beginning, > > I don't understand why its output of ss1 and ss2. I have check the help > > about split.