Python colorama.Fore 模块,LIGHTCYAN_EX 实例源码

我们从Python开源项目中,提取了以下5个代码示例,用于说明如何使用colorama.Fore.LIGHTCYAN_EX

项目:uitester    作者:IfengAutomation    | 项目源码 | 文件源码
def c_help(*args):
    print(Fore.LIGHTCYAN_EX + 'Command help args={}'.format(args))
    print("command |      description          |             usage")
    print("---------------------------------------------------------------------")
    commands = {"run", "devices", "kw"}
    for command in commands:
        if command == 'run':
            print("run     |   run cases               |       run file_name")
        elif command == 'devices':
            print("devices |   list all target devices |       devices")
        elif command == 'kw':
            print("kw      |   run case use kw         |       kw kw_name args")
项目:uitester    作者:IfengAutomation    | 项目源码 | 文件源码
def c_start_test(file_name):
    print(Fore.LIGHTCYAN_EX + 'Command run file_name={}'.format(file_name))
    tester.execute_script(file_name)
项目:uitester    作者:IfengAutomation    | 项目源码 | 文件源码
def c_devices():
    devices = tester.devices()
    if len(devices) > 0:
        for device in devices:
            print(Fore.LIGHTCYAN_EX + 'List of devices registered:')
            print(device + "   device")
    else:
        print(Fore.LIGHTCYAN_EX + 'There is no registered devices.')
项目:uitester    作者:IfengAutomation    | 项目源码 | 文件源码
def c_execute_kw_line(kw_name, *args):
    print(Fore.LIGHTCYAN_EX + 'Command kw name={} args={}'.format(kw_name, args))
    tester.execute_line(kw_name.lower(), *args)
项目:embedbot    作者:Luigimaster1    | 项目源码 | 文件源码
def on_ready():
    thread.do_run = False
    thread.join()
    print("\nStarted " + Fore.LIGHTCYAN_EX + "colorme.")
    print('Logged in as')
    print(bot.user.name.encode("ascii", "backslashreplace").decode())
    print(bot.user.id)
    print('------')
    bot.remove_command("help")
    bot.remove_command("HelpFormatter")