本文整理汇总了Python中YouTubeSubtitleControl.YouTubeSubtitleControl.transformColor方法的典型用法代码示例。如果您正苦于以下问题:Python YouTubeSubtitleControl.transformColor方法的具体用法?Python YouTubeSubtitleControl.transformColor怎么用?Python YouTubeSubtitleControl.transformColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类YouTubeSubtitleControl.YouTubeSubtitleControl
的用法示例。
在下文中一共展示了YouTubeSubtitleControl.transformColor方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_transformColor_should_convert_0
# 需要导入模块: from YouTubeSubtitleControl import YouTubeSubtitleControl [as 别名]
# 或者: from YouTubeSubtitleControl.YouTubeSubtitleControl import transformColor [as 别名]
def test_transformColor_should_convert_0(self):
player = YouTubeSubtitleControl()
color = player.transformColor("0")
print color
assert(color == "000000")
示例2: test_transformColor_should_convert_red
# 需要导入模块: from YouTubeSubtitleControl import YouTubeSubtitleControl [as 别名]
# 或者: from YouTubeSubtitleControl.YouTubeSubtitleControl import transformColor [as 别名]
def test_transformColor_should_convert_red(self):
player = YouTubeSubtitleControl()
color = player.transformColor("13369344")
print color
assert(color == "0000cc")
示例3: test_transformColor_should_convert_blue
# 需要导入模块: from YouTubeSubtitleControl import YouTubeSubtitleControl [as 别名]
# 或者: from YouTubeSubtitleControl.YouTubeSubtitleControl import transformColor [as 别名]
def test_transformColor_should_convert_blue(self):
player = YouTubeSubtitleControl()
color = player.transformColor("9828")
print color
assert(color == "642600")
示例4: test_transformColor_should_convert_white
# 需要导入模块: from YouTubeSubtitleControl import YouTubeSubtitleControl [as 别名]
# 或者: from YouTubeSubtitleControl.YouTubeSubtitleControl import transformColor [as 别名]
def test_transformColor_should_convert_white(self):
player = YouTubeSubtitleControl()
color = player.transformColor("16777215")
print color
assert(color == "ffffff")