-

   rss_habrahabr

 - e-mail

 

 -

 LiveInternet.ru:
: 22.11.2006
:
:
: 2

:


[ ] Python: Pyparsing

, 03 2014 . 12:03 +

( ) . , :

import matplotlib.pyplot  as plt

: import, , , as, .

, , :

{ 'import': [ 'matplotlib', 'pyplot' ], 'as': 'plt' }

Python, : 'import' 'as'. 'import' , .

. Python re (regular expression ). , . , 'import matplotlib.pyplot as plt' :

r'^[ \t]*import +\D+\.\D+ +as \D+'

, , Pyparsing. , .

Pyparsing .

http://habrahabr.ru/post/239081/

:  

: [1] []
 

:
: 

: ( )

:

  URL