代码拉取完成,页面将自动刷新
import os
def _wrap_with(code):
def inner(text, bold=False):
c = code
if os.environ.get('FABRIC_DISABLE_COLORS'):
return text
if bold:
c = "1;{0}".format(c)
return "\033[{0}m{1}\033[0m".format(c, text)
return inner
red = _wrap_with('31')
green = _wrap_with('32')
yellow = _wrap_with('33')
blue = _wrap_with('34')
magenta = _wrap_with('35')
cyan = _wrap_with('36')
white = _wrap_with('37')
print(red('hello world'))
print(green('hello world'))
print(yellow('hello world'))
print(blue('hello world'))
print(magenta('hello world'))
print(cyan('hello world'))
print(white('hello world'))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。