![python](https://habrastorage.org/r/w120/webt/5a/de/0e/5ade0efe6f5d5276653463.png)
Python
- 2 ответа
- 0 вопросов
0
Вклад в тег
def func(a, b):
print a or b
func(None, 'q')
func(123, 10)
func([1,2,3],'')
func('', {1: 5})
q 123 [1, 2, 3] {1: 5}
import subprocess
proc = subprocess.Popen(['ls','-la', some-other-args], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
out, err = proc.communicate()