title: pass special character from the command line
body: <p>I have a problem with passing special characters to python from the command line. This is my script:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  import sys
  
  if __name__ =="__main__":
  
      if len(sys.argv) == 2 :
          str = sys.argv[1]
      else :
          str = '\r\nte st'
      print (str)
  </code></pre>
  
  <p>And these are my test cases:</p>
  
  <pre><code>D:\&gt;testArgv.py "\r\nt est"
  \r\nt est
  
  D:\&gt;testArgv.py
  
  te st
  </code></pre>
  
  <p>I want to know how to pass arguments to python from the command line to archieve a goal like the latter case. Or how I should change my script.</p>