Modifications

Sauter à la navigation Sauter à la recherche
24 octets ajoutés ,  8 mars 2022 à 01:17
Ligne 46 : Ligne 46 :     
Notes:
 
Notes:
* the ''''r'''' mode is used to read text file.
+
* the file mode ''''r'''' used in the {{fname|open()}} reads text file.
 
* the {{fname|readline()}} read and return a line from the file (including the carriage return & line feed.
 
* the {{fname|readline()}} read and return a line from the file (including the carriage return & line feed.
 
* the {{fname|strip('\r\n')}} remove the carriage return & line feed from the readed line. Otherwise it will also be printed to the REPL (which result into a double line feed).
 
* the {{fname|strip('\r\n')}} remove the carriage return & line feed from the readed line. Otherwise it will also be printed to the REPL (which result into a double line feed).
29 917

modifications

Menu de navigation