2023年7月1日
摘要: 静态定位(static): position属性的默认值为static,会忽略 top, bottom, left, right 或者 z-index 声明。 相对定位(relative)与绝对定位(absolute): 相对定位偏移参考元素是元素本身,而绝对定位以父辈元素中最近的定位元素为参考坐标 阅读全文
posted @ 2023-07-01 09:20 shui00cc 阅读(14) 评论(0) 推荐(0) 编辑
  2023年6月8日
摘要: 向上取整:math.ceil() import math math.ceil(-0.9) >>> 0 math.ceil(0.3) >>> 1 向下取整:math.floor()、int()、//(整除) math.floor(-0.3) >>> -1 int(0.9) >>> 0 3 // 2 # 阅读全文
posted @ 2023-06-08 22:02 shui00cc 阅读(406) 评论(1) 推荐(0) 编辑
  2023年6月7日
摘要: 举例展示 Python在循环中修改遍历的字符串,将不会影响循环的遍历顺序和执行轮数 astr = "abcaef" bstr = "bcef" for i in astr: if i not in bstr: astr = astr.replace(i,'') print(i) 如上示例代码中,当i 阅读全文
posted @ 2023-06-07 17:47 shui00cc 阅读(132) 评论(0) 推荐(0) 编辑
  2023年6月4日
摘要: git init 这个命令用于在当前目录中创建一个新的 Git 仓库。它会在当前目录下生成一个名为.git的子目录 git remote add origin git@github.com:shui00cc/repository.git 这个命令用于将远程仓库repository的 URL 添加到你 阅读全文
posted @ 2023-06-04 20:35 shui00cc 阅读(12) 评论(0) 推荐(0) 编辑