Re: [Tutor] delete strings from specificed words

2018-01-11 Thread YU Bo
Hi, On Thu, Jan 11, 2018 at 11:40:35AM +1100, Cameron Simpson wrote: On 09Jan2018 22:20, YU Bo wrote: The text i will working as follow: ```text [...] diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index a789f952b3e9..443892dabedb 100644 [...] +++ b/tools/perf/util/util.c [.

Re: [Tutor] delete strings from specificed words

2018-01-11 Thread Cameron Simpson
On 11Jan2018 12:16, YU Bo wrote: Hi, Hi, On Thu, Jan 11, 2018 at 11:40:35AM +1100, Cameron Simpson wrote: Do you have the text as above - a single string - or coming from a file? I'll presume a single string. En.., the text is multi-string from str(something) within python. That's a si

[Tutor] xlrd has no attribute

2018-01-11 Thread Roger Lea Scherer
I'm trying to learn how open a xls file in python. I thought this would be easier. I've read on a blog this code and seen it on other websites. I thought I'd try it out. I'm on Windows 10 with python 3.6.4. import xlrd def open_file(path): """ Open and read an Excel file """ book

Re: [Tutor] xlrd has no attribute

2018-01-11 Thread Alan Gauld via Tutor
On 11/01/18 22:52, Roger Lea Scherer wrote: > Traceback (most recent call last): > File "C:\Users\Roger\Documents\Roger\Python\xlrd.py", line 1, in > import xlrd Look closely at the error message. What is the name of the file that causes the error? What is the name of the module you are im