Python os.mkfifo() 方法
Python 教程
· 2019-02-04 07:41:25
概述
os.mkfifo() 方法用于创建指令路径的管道,并设置权限模式。默认的模式为 0666 (八进制)。
语法
mkfifo()方法语法格式如下:
os.mkfifo(path[, mode])
参数
path -- 要创建的目录
mode -- 要为目录设置的权限数字模式
返回值
该方法没有返回值。
实例
以下实例演示了 mkfifo() 方法的使用:
#!/usr/bin/python # -*- coding: UTF-8 -*- import os, sys # 创建的目录 path = "/tmp/hourly" os.mkfifo( path, 0644 ) print "路径被创建"
执行以上程序输出结果为:
路径被创建
点击查看所有 Python 教程 文章: https://www.codercto.com/courses/l/8.html
The Haskell School of Music
Paul Hudak、Donya Quick / Cambridge University Press / 2018-10-4 / GBP 42.99
This book teaches functional programming through creative applications in music and sound synthesis. Readers will learn the Haskell programming language and explore numerous ways to create music and d......一起来看看 《The Haskell School of Music》 这本书的介绍吧!
随机密码生成器
多种字符组合密码
html转js在线工具
html转js在线工具