![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archivea re problem
From: cheng <magicmas@spymac.com>
Date: Sat May 28 2005 - 07:56:56 CEST
hi,all, i try to replace every target word found in the text
for target in splitText:
when i using the statment:
text = re.sub(r'\b%s\b','',text) &target
get error : unsupported operand type(s) for &: 'str' and 'str'
is it some idea that can modity it and make it work?
|