+ 2
What do all the whitespaces do?
What do \t,\r,\v and \f do? I don't think this was ever explained.
4 Antworten
+ 5
\t horizontal tabulation
\r carriage return ( not used in unix-like os, used with \n new line in widows os )
\v vertical tabulation ( not really used, JSON unauthorized )
\f form feed ( not used, control char for printers )
Controls characters are not design to be printed, so they are commonly assimilate to whitespaces ^^ ( in regex for example )
+ 1
its formatation stuff.
0
white spaces are very annoying if you don't know how to manage them. It usually has to do with user input. Example: (underscores represent whitespaces) _______chicken54__ It says that he put so and so spaces before and after his input. If you don't remove whitesace with example.lstrip() or example.rstrip(), the computer will be messed up and won't know what to do. You can also use example.strip() to remove ALL whitespace. I don't know where you got those forward-slash commands from and what they do though.
0
thx