s Python Class - Google's Python Class - Google Code Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding. These materials are used within Google to introduce Python to people who have just a little programming experience. To get started, the Python sections are linked at the left -- Python Set Up to get Python installed on your machine, Python Introduction for an introduction to the language, and then Python Strings starts the coding material, leading to the first exercise. This material was created by Nick Parlante working in the engEDU group at Google. Tip: Check out the Python Google Code University Forum to ask and answer questions.
Scripting, Part Two: Looping for Fun and Profit Crafty System Administrators who want to conserve energy need to learn the fine art of looping. You energy-conserving* system administrators will enjoy learning to use loops in your scripts. Looping is a technique that allows you to repeat a process or set of commands indefintely or until the loop exhausts a particular list of items. For example, you want to copy a particular file to everyone’s home directory. How do you do it? Don’t worry if you aren’t a scripting master, I’m going to take it slow through this series so that you can absorb what’s going on. The Basics You need access to a Linux system and last week’s post, “Scripting, Part One”. The Lively Loop There’s nothing particularly special about a loop. My original example is a good one. First, look at what’s needed to make this happen: a list of users, the file in question, and, depending on the file’s purpose, an optional permissions change. Next, put your needs into Linux terms. #! khess nimbus bob matthew mark luke john #! #!
VentureBeat | Transformative tech coverage that matters Python Programming in your Browser: PythonAnywhere The os.path module This module contains functions that deal with long filenames (path names) in various ways. To use this module, import the os module, and access this module as os.path. Working with file names This module contains a number of functions that deal with long filenames in a platform independent way. In other words, without having to deal with forward and backward slashes, colons, and whatnot. Example: Using the os.path module to handle filename # File: os-path-example-1.py import os filename = "my/little/pony" print "using", os.name, "..." print "split", "=>", os.path.split(filename) print "splitext", "=>", os.path.splitext(filename) print "dirname", "=>", os.path.dirname(filename) print "basename", "=>", os.path.basename(filename) print "join", "=>", os.path.join(os.path.dirname(filename), os.path.basename(filename)) using nt ... split => ('my/little', 'pony') splitext => ('my/little/pony', '') dirname => my/little basename => pony join => my/little\pony /home/effbot/.pythonrc . . .
Fiche technique : le RGPD et les données à caractère personnel Mise à jour 27 mars 2019 Droit applicable Le droit au 25 mai 2018 Règlement (UE) 2016/679 du Parlement européen et du Conseil du 27 avril 2016 relatif à la protection des personnes physiques à l'égard du traitement des données à caractère personnel et à la libre circulation de ces données, et abrogeant la directive 95/46/CE (règlement général sur la protection des données) (Texte présentant de l'intérêt pour l'EEE), disponible sur EUR-Lex : Loi n°78-17 du 6 janvier 1978 relative à l'informatique, aux fichiers et aux libertés, dans sa révision du 20 juin 2018 en vue la mettre en conformité avec le RGPD, de transposer la directive Police-Justice. Le droit à venir Le droit à venir est assez complexe à appréhender. Définitions utiles Article 4 RGPD Le principe du consentement Notion de consentement selon le RGPD - art.7 Le consentement des enfants - art.8 Les données sensibles - art.9 Exceptions Notamment :
Learn Python - Free Interactive Python Tutorial 10.1. os.path — Common pathname manipulations — Python v2.7.5 documentation This module implements some useful functions on pathnames. To read or write files see open(), and for accessing the filesystem see the os module. Note On Windows, many of these functions do not properly support UNC pathnames. splitunc() and ismount() do handle them correctly. Unlike a unix shell, Python does not do any automatic path expansions. Since different operating systems have different path name conventions, there are several versions of this module in the standard library. posixpath for UNIX-style pathsntpath for Windows pathsmacpath for old-style MacOS pathsos2emxpath for OS/2 EMX paths os.path.abspath(path) Return a normalized absolutized version of the pathname path. os.path.basename(path) Return the base name of pathname path. os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list. os.path.dirname(path) Return the directory name of pathname path. os.path.exists(path) os.path.lexists(path) os.path.getatime(path)
Fredrik Håård's Blaag I believe that Python is important for software development. While there are more powerful languages (e.g. Lisp), faster languages (e.g. C), more used languages (e.g. Java), and weirder languages (e.g. Haskell), Python gets a lot of different things right, and right in a combination that no other language I know of has done so far. It recognises that you’ll spend a lot more time reading code than writing it, and focuses on guiding developers to write readable code. Python also acknowledges that speed of development is important. This speed of development, the ease with which a programmer of other languages can pick up basic Python skills, and the huge standard library is key to another area where Python excels - toolmaking. That building custom tools is easy hints at another strength - building and maintaining custom software is easy, period. (*may not be true when installing source-distributed C extensions on Windows)