Python3 os.symlink() 方法
Python 3 教程
· 2019-02-07 20:13:06
概述
os.symlink() 方法用于创建一个软链接。
语法
symlink()方法语法格式如下:
os.symlink(src, dst)
参数
src -- 源地址。
dst -- 目标地址。
返回值
该方法没有返回值。
实例
以下实例演示了 symlink() 方法的使用:
#!/usr/bin/python3
import os
src = '/usr/bin/python'
dst = '/tmp/python'
# 创建软链接
os.symlink(src, dst)
print ("软链接创建成功")
执行以上程序输出结果为:
软链接创建成功
点击查看所有 Python 3 教程 文章: https://www.codercto.com/courses/l/10.html
具体数学(英文版第2版)
[美] Ronald L. Graham、Donald E. Knuth、Oren Patashnik / 机械工业出版社 / 2002-8 / 49.00元
This book introduces the mathematics that supports advanced computer Programming and the analysis of algorithms. The primary aim of its well-known authors is to provide a solid and relevant base of ma......一起来看看 《具体数学(英文版第2版)》 这本书的介绍吧!