早睡早起,方能养生
Sleep early rise early, way to keep healthy

Python获取图片、文件路径中的名称

super
2022-12-15 00:06
views 1442

Python获取图片、文件路径中的名称

 

img = 'https://rongsp.com/static/super/images/logo.png'

img_info_array = img.split("/")

print(img_info_array[-1])
# logo.png

 



分享
0 条讨论
top