2025-09-10:仓库迁移

This commit is contained in:
2025-09-10 16:12:45 +08:00
parent e0e49b0ac9
commit 3130e336a1
146 changed files with 4066 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
if __name__ == '__main__':
x = 1234.56789
# 对数值格式化输出我们使用经典format函数
print(format(x, '.2f'))
print(format(x, '+<10.2f'))
print(format(x, '=>10.2f'))
print(format(x, '-^10.2f'))
# 有一些特殊的比如数值特有的千位逗号1000
print(format(x, ',.2f'))
# 如果想用科学计数法把f改成e就行
print(format(x, '.2e'))
print(format(x, 'e'))