Revision history [back]
How to delete blank at end of multi-line & how to delete multi-line str In the beginning
Hello, I have two questions, 1. how to delete blank at end of multi-line; 2. how to delete multi-line str In the beginning, for example:
1.#!/usr/bin/env python
2.from myThread import MyThread
3.from time import ctime, sleep
4.def fib(x):
5.sleep(0.005)
- I want to delete multi-line blank at end of line,
- I want to delete multi-line str In the beginning, like: 1. 2. 3. at front of line, thanks very much.
How to delete blank at end of multi-line & how to delete multi-line str In the beginning
Hello, I have two questions, 1. how to delete blank at end of multi-line; 2. how to delete multi-line str In the beginning,
for example:
example:
1.#!/usr/bin/env python
2.from myThread import MyThread
3.from time import ctime, sleep
4.def fib(x):
5.sleep(0.005)
5.sleep(0.005)