title: Python3 When printing CR and some text, the text is not erased
body: <p>I am trying to write code for progressing.
  When I print CR, it just move the cursor to the beginning, but the text remains.
  like below:</p>
  
  <pre><code>print('xxxxx', end='\r')
  print('yy')  # I want to print only 'yy'
  &gt;&gt; yyxxx
  </code></pre>
  
  <p>Can I delete text, not just move the cursor?</p>