python sys.copyright 返回版权信息

sys.copyright

python标准库sys中的copyright可以用于获取当前使用的python的版权相关的信息。随着各类版权和知识产权越受重视,版权意识也变得越来越重要,即便是使用开源的软件。


返回值

python字符串str类型的值。


实例

提示:运行如下代码的python版本为python 3.6.7,系统为Mac osx:

>>> import sys
>>> type(sys.copyright)
<class 'str'>
>>> sys.copyright
'Copyright (c) 2001-2019 Python Software Foundation.\nAll Rights Reserved.\n\nCopyright (c) 2000 BeOpen.com.\nAll Rights Reserved.\n\nCopyright (c) 1995-2001 Corporation for National Research Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.'

全栈后端 / Python库 :









Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.