On 3/8/2018 7:07 PM, 노연수 wrote:
If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the
python is printed and i learned it's a crystal.
'\r' is a control character than means 'return to the beginning of the
line'. When you execute "print('hello\rpython')" in Python running
On 9 March 2018 at 01:07, 노연수 wrote:
> If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the
> python is printed and i learned it's a crystal. However, if you type print ("
> hello\ rpython ") in the python 3.7.0.b2 idle, it is output as hellopython. I
> wonder why it prints
On Sat, Mar 10, 2018 at 5:10 AM, Paul Moore wrote:
> On 9 March 2018 at 17:46, Rob Gaddi wrote:
>> On 03/08/2018 07:57 PM, Steven D'Aprano wrote:
>>>
>>> [snip]
>>>
>>> But it is possible that due to differences between platforms, the
>>> OP's version of IDLE doesn't display a carriage return as
On 9 March 2018 at 17:46, Rob Gaddi wrote:
> On 03/08/2018 07:57 PM, Steven D'Aprano wrote:
>>
>> [snip]
>>
>> But it is possible that due to differences between platforms, the
>> OP's version of IDLE doesn't display a carriage return as \r but
>> rather as an invisible zero-width space.
>>
>
> Ju
On 03/08/2018 07:57 PM, Steven D'Aprano wrote:
[snip]
But it is possible that due to differences between platforms, the
OP's version of IDLE doesn't display a carriage return as \r but
rather as an invisible zero-width space.
Just to derail this conversation a bit, does anyone have a use case
MRAB writes:
> I think the line was actually […]
> (I also think that "crystal" is […]
Let's not get into the warrens of responding to what the OP *didn't*
write. we're in no hurry. I'd like to wait for clarification from the
original poster, and not guess what they meant.
--
\ “The Vat
On 2018-03-09 03:57, Steven D'Aprano wrote:
[snip]
In IDLE 3.5 on Linux, I get this:
print('hello\rpython')
hello\rpython
Curiously, that's not a backslash r, it's actually a carriage return:
when I copy and paste it in this text, the editor treated it as a new
line character:
# direct copy
On 2018-03-09 01:59, Ben Finney wrote:
Welcome, and congratulations on beginning with Python.
노연수 writes:
If you type print (" hello\ rpython ") into the python 3.7.0.b2
I am not using Python 3.7 (it isn't released yet); I recommend staying
with the latest Python release. Today, that is vers
I'm afraid the original post by 노연수 has not come
through to me, so I will have to reply to Ben's reply.
On Fri, 09 Mar 2018 12:59:52 +1100, Ben Finney wrote:
> I am not using Python 3.7 (it isn't released yet); I recommend staying
> with the latest Python release. Today, that is version 3.6.
3
Welcome, and congratulations on beginning with Python.
노연수 writes:
> If you type print (" hello\ rpython ") into the python 3.7.0.b2
I am not using Python 3.7 (it isn't released yet); I recommend staying
with the latest Python release. Today, that is version 3.6.
That difference in version shou
If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the
python is printed and i learned it's a crystal. However, if you type print ("
hello\ rpython ") in the python 3.7.0.b2 idle, it is output as hellopython. I
wonder why it prints like this. I would appreciate your answer.
11 matches
Mail list logo