📜  python 链接缩短器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.642000             🧑  作者: Mango

代码示例2
#How to make a URL Shortener in Python

####You need to install " pip install pyshorteners " in the terminal / powershell

## Code:

import pyshorteners
link = input("Enter link :  ")
shortener = pyshorteners.Shortener()
x=shortener.tinyurl.short(link)
print(x)