Exrcice Python - comment lire un fichier texte existant sur le bureau avec Python : -Python version 2.7 python version 3.7 , winPython ou anaconda...- version Windows 7, Windows 8 , Windows 10. La méthode adoptée dans cete exercice Python, consiste à récupérer le nom d'utilisateur via la méthode os.getlogin après avoir importer le module os Python. On utilise ensuite la méthode open pour ouvrir le fichier texte en mode lecture et on applique finalement la methode read Python pour lire le fichier. Pour un bon visionnage de la vidéo, utiliser le navigateur google chrome.
Exprcice Python - how to read an existing text file on the desktop with Python: -Python version 2.7 python version 3.7, winPython or anaconda ...- version Windows 7, Windows 8, Windows 10. The method adopted in this exercise Python, consists in retrieve the user name via the os.getlogin method after importing the Python os module. We then use the open method to open the text file in read mode and we finally apply the Python read method to read the file. For a good viewing of the video, use the google chrome browser.