#-*- coding: utf-8 -*-
# yankchina@gmail.com 2009-11-03
# 将RGB码转换成HEX码,用于CSS编程
defRGB2HEX( Red, Green, Blue ):
   HEX ="%s%s%s"% (hex( Red )[-2:],hex( Green )[-2:],hex( Blue )[-2:] )
   Return HEX
defR2H( Red,Green,Blue ):
   Print Red,Green,Blue,":",RGB2HEX(Red,Green,Blue)

相关文章:

  • 2022-02-13
  • 2021-06-01
  • 2021-12-19
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-12-05
猜你喜欢
  • 2021-05-17
  • 2021-05-24
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
相关资源
相似解决方案