shachange.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:shachange 作者: gabfl 项目源码 文件源码
def getRandomPixePositionl():
    """
        Returns the position of a random pixel in the image
    """

    # Get image size
    width, height = getSize()

    # Get random pixel
    a, b = random.randint(0, width - 1), random.randint(0, height - 1)

    # Debug
    if args.debug:
        print('...debug -> random pixel: %d , %d' % (a, b))

    return a, b
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号