摘要: 网页常见的集中网络请求 XMLHttpRequest: 是浏览器原生的网络请求对象,通过创建实例、设置请求方法与 URL、监听状态变化等多个步骤来发起和处理请求。例如先 new XMLHttpRequest() 创建实例,再用 open 方法设置请求细节,最后 send 发送请求,并通过 onrea 阅读全文
posted @ 2024-12-27 16:47 西湖盗月 阅读(227) 评论(0) 推荐(0)
摘要: 看到有些天干地支的匹配是不对的,不是简单的for - for循环 而是配对出现的 a = ['甲','乙','丙','丁','戊','己','庚','辛','壬','癸'] b = ['子','丑','寅','卯','辰','巳','午','未','申','酉','戌&# 阅读全文
posted @ 2020-11-20 16:40 西湖盗月 阅读(148) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> #include <string> using namespace std; int main() { int 阅读全文
posted @ 2020-11-13 17:26 西湖盗月 阅读(86) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> #include <string> using namespace std; int main() { int 阅读全文
posted @ 2020-11-13 16:50 西湖盗月 阅读(148) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> #include <string> using namespace std; int main() { int 阅读全文
posted @ 2020-11-13 16:08 西湖盗月 阅读(97) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> using namespace std; int SuShu(int n) { //去除小于2的数 if(n 阅读全文
posted @ 2020-11-13 15:16 西湖盗月 阅读(137) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> #include <iomanip> using namespace std; int main() { int n = 0; cin >> n; 阅读全文
posted @ 2020-11-13 14:34 西湖盗月 阅读(88) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> using namespace std; bool CheckYear(int n) { if(n % 400 == 0) return true; 阅读全文
posted @ 2020-11-13 14:21 西湖盗月 阅读(113) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> using namespace std; int main() { //字符判断 char a[5]; cin.getline(a,4); if(a 阅读全文
posted @ 2020-11-13 14:19 西湖盗月 阅读(84) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; //卡特兰数列原理及应用 int catalan(int n){ if (n == 1)return 1; if (n == 2)return 1; int res = 0; for (int i = 1; i <= 阅读全文
posted @ 2020-10-23 10:53 西湖盗月 阅读(132) 评论(0) 推荐(0)