Skip to content

Commit 1cdf98d

Browse files
committed
archive: 刷牙 - 明天换设备
Signed-off-by: LetMeFly666 <[email protected]>
1 parent 6cb55b4 commit 1cdf98d

18 files changed

+150
-1869
lines changed

KongMingQi.cpp

Lines changed: 0 additions & 1287 deletions
This file was deleted.

Solutions/Other-Python-LearnPythonFrom0.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Python - 从0开始学Python
2+
title: Python - 从0开始学Python(Python3)
33
date: 2024-11-22 23:03:48
44
tags: [其他, Python]
55
---
66

7-
# Python - 从0开始学Python
7+
# Python - 从0开始学Python(Python3)
88

99
Python作为一门“胶水语言”,(很多领域的人都)值得一学。
1010

@@ -15,6 +15,9 @@ Python作为一门“胶水语言”,(很多领域的人都)值得一学。
1515
<!-- 需要会动的粉色渐变,颜色从后往前移动 -->
1616
<!-- 这个颜色挺好看的,但是不会动 -->
1717

18+
<!-- 我有这么一段HTML`<p class="LetMeFly_ToCute">仅以此篇,献给某可爱的人。</p>`,请写一个JS函数,2秒内点击这个p标签8次及以上的话,打开一个新页面。 -->
19+
<!-- 写到一个文件里 -->
20+
1821
## Day1 - Python安装、Python原理、Python一些基础概念、Python基础数据类型、Python函数的简单调用
1922

2023
<span id="day1"></span>
@@ -66,10 +69,12 @@ a = a + b # Line 3
6669
print(a) # Line 4
6770
```
6871

69-
其中`a``b`就是变量,`print`是函数,
72+
其中`a``b`就是变量,`print`是函数,第4行的`a`是函数`print`的参数。
7073

7174
### Python基础数据类型
7275

76+
## Dayn - 操作符重载
77+
7378
# End
7479

7580
<style name="LetMeFly_ToCute">
@@ -94,6 +99,38 @@ print(a) # Line 4
9499
}
95100
</style>
96101

102+
<script name="LetMeFly_ToCute">
103+
document.addEventListener('DOMContentLoaded', function() {
104+
const pElement = document.querySelector('.LetMeFly_ToCute');
105+
let clickCount = 0;
106+
const targetClicks = 5;
107+
const timeLimit = 1000; // 1秒
108+
let startTime = Date.now();
109+
110+
// 添加点击事件监听器
111+
function handleClick() {
112+
const currentTime = Date.now();
113+
if (currentTime - startTime <= timeLimit) {
114+
clickCount++;
115+
if (clickCount == targetClicks) {
116+
openNewPage();
117+
clickCount = 0;
118+
}
119+
} else {
120+
// 如果时间超过限制,重置计数器和开始时间
121+
clickCount = 1; // 重置计数器
122+
startTime = currentTime; // 重置开始时间
123+
}
124+
}
125+
126+
pElement.addEventListener('click', handleClick);
127+
128+
function openNewPage() {
129+
window.open('https://letmefly.xyz/He0/shykeke/WeCan/', '_blank');
130+
}
131+
});
132+
</script>
133+
97134
<center><font size="6px" face="Ink Free">The End, thanks!</font></center>
98135

99136
> 原创不易,转载经作者同意后请附上[原文链接](https://blog.letmefly.xyz/2024/11/22/Other-Python-LearnPythonFrom0/)~
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
'''
22
Author: LetMeFly
33
Date: 2023-08-26 18:06:23
4-
LastEditors: LetMeFly
5-
LastEditTime: 2024-04-04 23:20:45
4+
LastEditors: LetMeFly.xyz
5+
LastEditTime: 2024-11-23 21:49:36
6+
Description: https://aistudio.baidu.com/projectdetail/6678917
7+
Description: 后面被实验室的3090(虽然也不是很先进)碾压了
68
'''
79
datasets_prefix = '/root/paddlejob/workspace/train_data/datasets/'
810
# 数据集文件具体路径请在编辑项目状态下通过左侧导航「数据集」中文件路径拷贝按钮获取

history.del.html

Lines changed: 0 additions & 67 deletions
This file was deleted.

history.del.ipynb

Lines changed: 0 additions & 238 deletions
This file was deleted.

0 commit comments

Comments
 (0)