zoukankan      html  css  js  c++  java
  • python 随机生成图片验证码背景RGB-浅色或者深色

    1 import random
    2 def random_color(is_light = True):
    3     return (random.randint(0 ,127) + int(is_light) * 128,random.randint(0,127) + int(is_light) * 128,random.randint(0,127) + int(is_light) * 128)
    4 
    5 back_color = random_color(is_light= True)
    行成于思毁于随
  • 相关阅读:
    9.17 HTML CSS
    9.16
    9.15
    9.14
    9.13
    9.12
    9.11
    9.10
    9.9
    9.8
  • 原文地址:https://www.cnblogs.com/chengbo2130/p/10078093.html
Copyright © 2011-2022 走看看