خرید بک لینک

Vote count: 0

For example if I have a python script test.py containing

import time

print('foo')
time.sleep(5)

print('bar')
time.sleep(5)

and a shell script run_test.sh containing

#!/usr/bin/env bash

python test.py

then ruing the latter (using the Run menu item for example) from within PyCharm prints no output until the entire script has completed (after about 10 seconds).

Is there a way to print output as my shell script runs?

asked 1 min ago

- - , .
.

برچسب: نویسنده: استخدام کار تاريخ: شنبه 26 تير 1395 ساعت: 20:23

صفحه بندی