How to replace "\" with "\\"
<p>I've a path from <code>wx.FileDialog (getpath())</code> shows <code>"c:\test.jpg"</code> which doesn't works with opencv <code>cv.LoadImage()</code> which needs <code>"\\"</code> or <code>"/"</code></p>

<p>So, I've tried to use replace function for example:</p>

<pre><code>s.replace("\","\\"[0:2]),s.replace("\\","\\\"[0:2])
</code></pre>

<p>but none those works. </p>

<p>And, this command <code>s.replace("\\","/"[0:1])</code> returns the same path, I don't know why.</p>

<p>Could you help me solve this easy problem. </p>

<p>ps, I'm very new to python</p>

<p>thank you so much. sorry about my grammar</p>
