Python standard library Introduction--35 pipes module Detailed

Source: Internet
Author: User
The ==pipes module = = (Unix only) "Pipes" module provides support for "conversion pipeline (conversion pipelines)". You can create pipelines that contain many external tool calls to handle multiple files. As shown in [Example 3-8 #eg-3-8]. ====example 3-8. Use pipes module ====[eg-3-8] "' File:pipes-example-1.pyimport pipest = pipes. Template () # Create a pipeline# Here "-" represents reading from the standard input content t.append ("Sort", "--") T.append ("Uniq", "--") # filter some text# here empty string generation Table standard output t.copy ("Samples/sample.txt", "") *b*alan Jones (Sensible Party) Kevin Phillips-bong (slightly silly) Tarquin Fin-tim-lin-bin-whin-bim-lin-bus-stop-f ' tang-f ' tang-olé-biscuitbarrel*b* '

  

Python standard library Introduction--35 pipes module Detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.