@clepto
Αν μεταφέρεις τα posts σε άλλο θέμα, θα εξακολουθήσουν να εμφανίζονται κατά χρονολογική σειρά. Κατά συνέπεια το δικό σου, αν και πρώτο αυτή τη στιγμή θα θα γίνει το τελευταίο (πιο πρόσφατο).
Συντονιστής: konnn





έγραψε:There is even a variant to import all names that a module defines:
>>>
- Κώδικας: Επιλογή όλων
>>> from fibo import *
>>> fib(500)
1 1 2 3 5 8 13 21 34 55 89 144 233 377
This imports all names except those beginning with an underscore (_).
Note that in general the practice of importing * from a module or package is frowned upon, since it often causes poorly readable code. However, it is okay to use it to save typing in interactive sessions.

Μεταφέρθηκαν τα τελευταία 4 μηνύματα από το θέμα της PyQt στο κατάλληλο θέμα (εδώ).


>>> import subprocess, shlex
>>> subprocess.Popen(shlex.split('ls -l'))
encfs ~/.testfolder ~/testfolder