"Haibao Tang" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have a two-column data file like this
> 1.1    2.3
> 2.2    11.1
> 4.3    1.1
> ...
> Is it possible to substitue all '1.1' to some value else without using
> re.
>

Yes --

data = """1.1    2.3
2.2    11.1
4.3    1.1"""

newdata = data.replace("1.1","1.x")

but that's probably not what you want.

Emile 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to