上一页 1 2 3 4 5 6 7 ··· 27 下一页
摘要: SQL 背景 字体颜色 show variables like 'character%' # 查看编码相关 + + + | Variable_name | Value | + + + | character_set_client | latin1 | | character_set_connecti 阅读全文
posted @ 2024-01-24 10:18 klyn003 阅读(45) 评论(0) 推荐(0)
摘要: array Python中的array的长度是本身携带的属性,len(),实际为调用内部函数__len__() arr: List = [0,1,2,3] index的取值范围: [-len(arr), len(arr) - 1] keys 较为少见或者可以不需要 del yield not is 阅读全文
posted @ 2024-01-19 17:27 klyn003 阅读(39) 评论(0) 推荐(0)
摘要: linux 相关 linux 工具 brew The Missing Package Manager for macOS (or Linux) llvm LLVM (Low Level Virtual Machine) is an open source compiler infrastructur 阅读全文
posted @ 2024-01-07 20:57 klyn003 阅读(71) 评论(0) 推荐(0)
摘要: Container( // padding: EdgeInsets.only(left: 20, right: 20), margin: EdgeInsets.only(top: 20, left: 20, right: 20), width: 500, height: 500, decoratio 阅读全文
posted @ 2024-01-07 16:36 klyn003 阅读(243) 评论(0) 推荐(0)
摘要: 在Python中,对数组进行排序可以使用内置的sorted()函数或者列表对象的sort()方法。同时,可以使用参数来指定不同的排序方法。 使用sorted()函数进行排序并指定排序方法: arr = [3, 1, 4, 2, 5] # 使用sorted函数进行排序,默认为升序排序 sorted_a 阅读全文
posted @ 2024-01-06 23:13 klyn003 阅读(71) 评论(0) 推荐(0)
摘要: Python中的深拷贝和浅拷贝 在Python中,对象的拷贝是一个常见的操作。Python提供了两种拷贝方式:深拷贝和浅拷贝。了解这两种拷贝方式的概念和使用场景,有助于我们正确处理对象的拷贝问题。 1. 浅拷贝 浅拷贝是指创建一个新对象并将原始对象的引用复制到新对象中。新对象和原始对象共享内部对象的 阅读全文
posted @ 2024-01-06 22:40 klyn003 阅读(74) 评论(0) 推荐(0)
摘要: on 在 mixin 中的使用 abstract class Animal { // properties String name; double speed; // constructor Animal(this.name, this.speed); // abstract method void 阅读全文
posted @ 2023-12-31 19:08 klyn003 阅读(34) 评论(0) 推荐(0)
摘要: Dart中的const和final 在Dart编程语言中,const和final关键字都用于声明常量。虽然它们的目的相同,但在语义和使用上略有不同。 const const关键字用于创建不可变(immutable)的常量,这些常量的值必须在编译时就已知。const可以用于变量、方法和集合(如List 阅读全文
posted @ 2023-12-31 17:06 klyn003 阅读(243) 评论(0) 推荐(0)
摘要: Dart try catch on finally void main() { int a = 12; int b = 0; int res; try { res = a ~/ b; } on UnsupportedError { // it is used as we know waht erro 阅读全文
posted @ 2023-12-30 23:12 klyn003 阅读(43) 评论(0) 推荐(1)
摘要: 当谈到Python的多线程时,人们经常会提到全局解释器锁(Global Interpreter Lock,GIL)。GIL是CPython解释器中的一个机制,它确保同一时间只有一个线程在解释Python字节码。这导致了Python的多线程执行在某种程度上是单线程化的,无法充分利用多个处理器。现在让我 阅读全文
posted @ 2023-12-05 21:37 klyn003 阅读(70) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 27 下一页