enact.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:pyqubes 作者: tommilligan 项目源码 文件源码
def echo(args, file=None):
    '''
    Echo a list of arguments (as given to ``subprocess.call``) to the given stream.

    This defaults to ``stdout``, but can be changed to any stream-like object such as a file handle.

    :param args: A string or list of strings
    :param file: A file-like object to stream output to. Defaults to ``sys.stdout``
    '''
    if file is None:
        file = sys.stdout

    if isinstance(args, six.string_types + (six.text_type,)):
        args = [args]

    six.print_(*args, file=file, flush=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号