03 2024 档案

摘要:不依赖第三方库编写进度条 # 不依赖第三方库,进度条设计 X = 10000 for i in range(X): for j in range(X): k = j * i # 80 是进度条的在显示时的比例,按需分配;'\r':每次输出让光标都回到首行 print('进度', f'|{"█"*(( 阅读全文
posted @ 2024-03-13 10:20 冷夜O 阅读(2) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash cat > my_python_script.py <<EOF #!/usr/bin/env python3 print("Hello, World!") print('This is a Python script with both "double" and \'sing 阅读全文
posted @ 2024-03-12 10:34 冷夜O 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示