programowanie python system call modul subprocess modul os tab zeby listowac narzedzia w module, potem ? na koncu zeby pokazac opis ? string integer floating point truncate modul range petla for python for i in range(5): pyfunc() bash for (( i=0 ; i < 5 ; i++)) definiowanie funkcji: def nazwa(): klasa ? print In/Out ? lsmagic w ipython fajny alias ps = !ps -ef ps.grep('root') ps.fields(0,1) 'root 27627', 'root 27633', id procesow roota ps.fields(0,1).grep('root').fields(1) ps aux | awk '{if ($1 == "jmjones") print $2}' page - tak jak more opis funkcji pdoc/pdef pfile module, pinfo psearch, psource macro -funkcja str - string - sequence of characters ',",''' - to samo - tworza obiekt typu str ''' - multiple lines raw string - python nie interpretuje escape sequences (\t) test operators in, not int s.startswith strip, lstrip, rstrip (left/right) remove any occurence ("<>") .lower/.upper .split/.splitlines join - ','.join(some_list) convert int into str In [76]: ":".join([str(i) for i in some_list]) Out[76]: '0:1:2:3:4:5:6:7:8:9' replace("a", "b") typ string: unicode number-to-character mapping, works everywhere unicode_string = u'this is a unicode string' findall(), finditer(), match(), and search()