# -*- coding: iso-8859-1 -*- #. // _by_version.py #. // Renvoie la version de Python. from sys import version def by_version( lLong = False ): cVersion = version if not lLong: cVersion = cVersion[ : cVersion.find( " " ) ] #. endif return cVersion ''' Dernière modification : 2022-02-09 [Exemple] import sys sys.path.append( "modules" ) from _by_version import by_version # // Renvoie la version de Python. print() print( "by_version( True )" ) print( by_version( True ) ) print() print( "by_version()" ) print( by_version() ) [/Exemple] '''