摘要:
import requests import pyshorteners as psn def long_to_short(url): url = psn.Shortener().chilpit.short(url) return url def short_to_long(url): res = r 阅读全文
posted @ 2023-01-17 15:30
乐乐乐乐乐乐樂
阅读(46)
评论(0)
推荐(0)
摘要:
python中的代码运行时间获取方式 我们知道为了提高代码的运行速度,我们需要对书写的python代码进行性能测试,而代码性能的高低的直接反馈就是电脑运行代码所需要的时间。 使用time模块对代码的运行时间进行统计 import time class Lucky(): def jia(self) 阅读全文
posted @ 2023-01-17 15:23
乐乐乐乐乐乐樂
阅读(82)
评论(0)
推荐(0)

浙公网安备 33010602011771号