python3学习手册
跳转到鼠标指定的函数定义处 Shi� + F10 运行程序 Ctrl + R 查找替换 ★设置字体颜色 File → Se�ngs → Editor → Color Scheme → Language Defaults → 选中目 标Scheme ★设置背景颜色 File→Se�ngs→Editor→Color Scheme→Console Colors→Scheme → 选 rjust(30, "*") # 右对齐,*补全 ★print输出带颜色的字linux 此种方法仅linux命令行下有效 print( "\033[0m 带颜色的文字 \033[0m" ) # \033[和m之间的数字为显示效果及颜色的 数字代码 数 字 代 码 效果 颜色 前景色代 码 背景色代 码 0 默 认 , 灰 白 黑 30 40 1 粗体 红 31 反白显示 蓝 34 44 紫 35 45 青 36 46 灰 白 , 同 0 默认 37 47 效果+颜色用;分号隔开 print("\033[4;31m这是带下划线红色的字\033[0m") ★print输出带颜色的字windows 此种方法仅windows命令行下有效 import ctypes STD_INPUT_HANDLE = -10 STD_OUTPUT_HANDLE0 码力 | 213 页 | 3.53 MB | 1 年前3PyWebIO v1.5.2 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.0 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.5.0 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.3 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.7.1 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 127 页 | 1.73 MB | 1 年前3PyWebIO v1.5.1 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.7.0 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.1 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.6.2 使用手册
按钮值, "type":(str, optional) 按钮类型, "disabled":(bool, optional) 是否禁止选择, "color":(str, optional) 按钮颜色 } 若 type='reset'/'cancel' 或 disabled=True 可省略 value – tuple or list: (label, value, [type], [disabled]) 输出加载提示 参数 • shape (str) –加载提示的形状, 可选值: 'border' (默认,旋转的圆环)、'grow' (大小渐变的圆点) • color (str) –加载提示的颜色, 可选值: 'primary' 、'secondary' 、'success' 、'danger' 、'warning' 、'info' 、'light' 、'dark' (默认) • scope "color":(str, optional) 按钮颜色, "disabled":(bool, optional) 按钮时否被禁用 } – tuple or list: (label, value) – 单值: 此时 label 和 value 使用相同的值 其中,value 可以为任意对象。使用 dict 类型的列表项时,支持使用 color key 设 置按钮颜色,可选值为 primary 、secondary0 码力 | 123 页 | 1.72 MB | 1 年前3
共 111 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12