Le 23/03/2018 à 13:30, Wolfgang Maier a écrit :
On 03/23/2018 01:16 PM, ast wrote:
A very simple improvement would be to use a single triple-quoted string. Assuming you are copy/pasting the number from somewhere that will save a lot of your time.
no, it seems that sone \n are inserted inside the number >>> C = int(""" 1234 5678""") Traceback (most recent call last): File "<pyshell#14>", line 3, in <module> 5678""") ValueError: invalid literal for int() with base 10: '\n1234\n5678' -- https://mail.python.org/mailman/listinfo/python-list