2023年4月9日
摘要:
与& 或| 异或^ 的三个常见用途 1. 与& 作为掩码 (bitmask)屏蔽比特串的一部片/提取比特串的一部分 a = 0b11010101 # Binary b = 0b00000111 # Bitmask c = a & b # c = 0b00000101 # b作为掩码和a进行与操作后,
阅读全文
posted @ 2023-04-09 22:10
摸鱼time
阅读(82)
推荐(0)
2023年2月13日
摘要:
Table 1. Basic table structure <table> </table> create a table <tr> </tr> indicate the start of each row <td> </td> each cell in a roll <table>
阅读全文
posted @ 2023-02-13 21:39
摸鱼time
阅读(28)
推荐(0)
摘要:
Images 1. Storing images on the site create a folder to store On a big site, subfolders such as "interface", "products", "news" are necessary 2. addin
阅读全文
posted @ 2023-02-13 15:12
摸鱼time
阅读(37)
推荐(0)
摘要:
Links grammar <a href="https:www.imdb.com">IMDB</a> IMDB 1. Directory Structure Relative URLs <a href="www.examplearts.com/index.html">home page</a> <
阅读全文
posted @ 2023-02-13 15:06
摸鱼time
阅读(18)
推荐(0)
摘要:
1. TEXT <strong>bold</strong> <!-- by defauly, the content showed in bold --> <b>bold</b> <i>italics</i> <em>italics</em> <del>del</del> <s>del</s> <i
阅读全文
posted @ 2023-02-13 14:47
摸鱼time
阅读(26)
推荐(0)
2021年7月13日
摘要:
Javascript_Truthy(真值) 在 JavaScript 中,truthy(真值)指的是在布尔值上下文中,转换后的值为真的值。所有值都是真值,除非它们被定义为 假值(即除 false、0、""、null、undefined 和 NaN 以外皆为真值)。
阅读全文
posted @ 2021-07-13 14:04
摸鱼time
阅读(65)
推荐(0)
2021年7月5日
摘要:
C#语法基础_foreach 遍历数组中元素 foreach(type var in arrayname){ ... } 例子 class Program { static void Main(string[] args) { int[] intlist = { 1, 2, 3, 4, 5 }; f
阅读全文
posted @ 2021-07-05 13:19
摸鱼time
阅读(57)
推荐(0)
摘要:
C#语法基础20_类型转化之as 类型转化as MyType var1 = var2 as MyType; var2 转化为MyType类型,如果转化失败,var1 = null
阅读全文
posted @ 2021-07-05 13:18
摸鱼time
阅读(49)
推荐(0)
摘要:
C#语法基础19_面向对象编程_继承性(与多态初识) 封装性链接如下: C#语法基础17_面向对象编程_封装性 - 摸鱼time - 博客园 (cnblogs.com) 类的继承 C#为单继承 子类(sub-class)继承父类(parent-class) private修饰的变量不可被子类继承 p
阅读全文
posted @ 2021-07-05 13:15
摸鱼time
阅读(75)
推荐(0)
2021年7月3日
摘要:
JS初识闭包 以如下代码为例 function f1(){ var n=999; nAdd=function(){n+=1} function f2(){ // 函数f2根据js作用域链拥有对其父函数f1的变量与内部函数的访问圈钱 <1式> alert(n); } return f2; // 返回对
阅读全文
posted @ 2021-07-03 11:54
摸鱼time
阅读(50)
推荐(0)