import math


def get_request_urls(query=None,img_num=0)->list:
    """
    get urls for requesting according to the query and numbers of image that wants to download
    :param query: keyword of image
    :param img_num: numbers of image
    :return: requesting urls
    """
    request_urls_num=math.ceil(img_num/35)
    urls=[f"https://www.bing.com/images/async?q={query}&first={1+35*i}&count=35&cw=1177&ch=577&tsc=ImageBasicHover&datsrc=I&mmasync=1&SFX={i+1}" for i in range(request_urls_num+1)]   # 多+1是因為圖片網址不會每次都請求成功，所以故意多請求一次以免圖片不夠
    return urls