摘要: 使用Python自带的print()实现的类似便签(不知道该怎么描述,描述不恰当还请见谅)的输出效果 源码 import string class FramePrint(): CENTER = 'center' RIGHT = 'right' LEFT = 'left' TOP = 'top' BO 阅读全文
posted @ 2025-05-30 11:17 天空之城00 阅读(7) 评论(0) 推荐(0)
摘要: 这是我自己使用 Python 原生 print 函数写的一个用来将内容以表格的形式进行格式化输出的模块 源码 import string class TablePrint: CENTER = 'center' RIGHT = 'right' LEFT = 'left' def __init__(se 阅读全文
posted @ 2025-05-30 11:15 天空之城00 阅读(30) 评论(0) 推荐(0)
摘要: title: 任务 date: 2022-12-09T14:42:36Z lastmod: 2022-12-09T14:55:09Z 任务 static void Main(string[] args) { TaskFactory tf = new TaskFactory(); Task t = t 阅读全文
posted @ 2023-10-04 15:54 天空之城00 阅读(15) 评论(0) 推荐(0)
摘要: title: 使用Thread启动线程和传输数据 date: 2022-12-05T19:14:18Z lastmod: 2022-12-05T19:31:59Z 使用Thread启动线程和传输数据 启动线程 static void Test() { Console.WriteLine("Test 阅读全文
posted @ 2023-10-04 15:54 天空之城00 阅读(20) 评论(0) 推荐(0)
摘要: title: 死锁问题 date: 2022-12-09T15:09:41Z lastmod: 2022-12-09T15:23:37Z 死锁问题 internal class StateObject { private Object _lock1 = new Object(); private O 阅读全文
posted @ 2023-10-04 15:54 天空之城00 阅读(11) 评论(0) 推荐(0)
摘要: title: 线程池 date: 2022-12-09T14:28:02Z lastmod: 2022-12-09T14:41:45Z 线程池 static void Main(string[] args) { for (int i = 0; i < 10; i++) { ThreadPool.Qu 阅读全文
posted @ 2023-10-04 15:53 天空之城00 阅读(17) 评论(0) 推荐(0)
摘要: title: 线程的优先级和线程的状态 date: 2022-12-05T19:57:50Z lastmod: 2022-12-05T20:18:53Z 线程的优先级和线程的状态 线程的优先级 在 Thread 类中,可以设置 Priority​ 属性,以影响线程的基本优先级,Priority​ 属 阅读全文
posted @ 2023-10-04 15:53 天空之城00 阅读(18) 评论(0) 推荐(0)
摘要: title: 异步委托的方式启动线程 date: 2022-12-05T19:03:24Z lastmod: 2022-12-05T19:11:59Z 异步委托的方式启动线程 static void Test() { Console.WriteLine("Test Started"); Consol 阅读全文
posted @ 2023-10-04 15:53 天空之城00 阅读(7) 评论(0) 推荐(0)
摘要: title: 资源访问冲突问题 date: 2022-12-09T14:56:10Z lastmod: 2022-12-09T15:09:16Z 资源访问冲突问题 internal class StateObject { private int state = 5; public void Chan 阅读全文
posted @ 2023-10-04 15:52 天空之城00 阅读(15) 评论(0) 推荐(0)
摘要: title: 自定义类传递数据和前台线程、后台线程 date: 2022-12-05T19:32:26Z lastmod: 2022-12-05T19:51:01Z 自定义类传递数据和前台线程、后台线程 internal class DowmloadTool { public string URL 阅读全文
posted @ 2023-10-04 15:52 天空之城00 阅读(14) 评论(0) 推荐(0)