1. for n in range(500):
    2. url = 'https://appest-public.s3.amazonaws.com/download/mac/TickTick_3.9.00_{}.dmg'.format(n)
    3. resp = requests.get(url)
    4. try:
    5. print(resp.status_code)
    6. if resp.status_code == 200:
    7. print(n)
    8. break
    9. except Exception as e:
    10. print(e)

    :::info 背景 :::