Home > other >  The split of the usage of the new humanism meng
The split of the usage of the new humanism meng

Time:11-03

S=input
123456789
Z=x c s.s plit ()
Print (x)
How should enter tried so many times

CodePudding user response:

Don't understand your need, do you want to put the input string input split into three, and then print out in the middle of that?

CodePudding user response:

reference 1st floor max5173 response:
don't understand your need, do you want to put the input string input split into three, and then print out in the middle of that?
of
Don't beat

CodePudding user response:

First, the split split string is to have a delimiter, the default is a space
Second, if you want to split into three, in the middle, will need to have 2 delimiter, you give an example of 123456789 certainly not
 
S=input (' please enter the need to separate character:)
Z, x, c=s.s plit ()
Print (x)

CodePudding user response:

Directly into a 123, 456, 789 is ok!

CodePudding user response:

(1) : the split needs a separator to separate you can write
S=input (' input 1-9:)
X=s.s plit (', ')
Print (x [1])
(2) : enter 123456789
If you want to enter 123456789 section does not need to use split function can be used

CodePudding user response:

reference 5 floor AnNing315 reply:
directly into a 123, 456, 789 is ok!
yes

CodePudding user response:

refer to 7th floor max5173 response:
Quote: refer to fifth floor AnNing315 response:

Directly into a 123, 456, 789 is ok!
yes
thank you

CodePudding user response:

references on the 6th floor to the lights response:
(1) : the split needs a separator to separate you can write
S=input (' input 1-9:)
X=s.s plit (', ')
Print (x [1])
(2) : enter 123456789
If you want to enter 123456789 can use slice does not need to use the split function
thank you

CodePudding user response:

reference 4 floor max5173 response:
first, string delimiter is the splitting of the split, the default is a space
Second, if you want to split into three, in the middle, will need to have 2 delimiter, you give an example of 123456789 certainly not
 
S=input (' please enter the need to separate character:)
Z, x, c=s.s plit ()
Print (x)
elder brother that can add a vx, all look not to understand some of the problems the novice baidu

CodePudding user response:

references to the tenth floor AnNing315 response:
Quote: refer to 4th floor max5173 response:
first, string delimiter is the splitting of the split, the default is a space
Second, if you want to split into three, in the middle, will need to have 2 delimiter, you give an example of 123456789 certainly not
 
S=input (' please enter the need to separate character:)
Z, x, c=s.s plit ()
Print (x)
elder brother that can add a vx, all look not to understand some of the problems the novice baidu

Actually I also is a novice, their reading learned a few months,,, ok, other little help

CodePudding user response:

11 references max5173 response:
Quote: reference to the tenth floor AnNing315 response:

Quote: refer to 4th floor max5173 response:
first, string delimiter is the splitting of the split, the default is a space
Second, if you want to split into three, in the middle, will need to have 2 delimiter, you give an example of 123456789 certainly not
 
S=input (' please enter the need to separate character:)
Z, x, c=s.s plit ()
Print (x)
elder brother that can add a vx, all look not to understand some of the problems the novice baidu

Actually I also is a novice, their reading learned a few months,,, ok, other little help
a, s=map (int, input (). The split ()) and then input Numbers should be how to play the elder brother

CodePudding user response:

Map () function returns an object, assignment "=" symbol on the left, you can only have one variable,

CodePudding user response:

reference 13 floor max5173 reply:
map () function returns an object, assignment "=" symbol on the left, you can only have one variable,
brought me into the digital antithesis so don't go in I thought it was my problem
  • Related