Home > other >  Looking for the following code
Looking for the following code

Time:04-07

Using slicing operation, the implementation of a fixed string (" 123 "ABC" D ") of the trim () function, remove the string fore and aft space, be careful not to call the STR built-in method,

Tip: use slice position the fore and aft, determine the characters whether Spaces, and then USES the assignment operation to variate, achieve the function to remove Spaces,

  • Related