011 Python 的打印(花式变色打印)和注释(为什么加个#号就能注释)
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Datatime:2022/7/18 21:29
# Filename:011 Python 的打印和注释.py
# Toolby: PyCharm
# 打印:(打印机)
a = 1
b = 2
print(a+b)
print(a)
c = 1
print(c)
# 都只是一串普通的字符串
# 注释
import time
for i in range(100):
time.sleep(0.2)
print(f'\r\033[3{i%10};4{i%10}mThis is a test !\033[0m',end='',flush=True)
# print(f'\033[32mThis is a test !\033[0m', end='',flush=True)