摘要: https://www.nowcoder.com/exam/oj/ta?tpId=37 https://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1 提交代码 #include <stdio.h> int main() { ch 阅读全文
posted @ 2022-05-15 16:27 孤舟浮岸 阅读(120) 评论(0) 推荐(0) 编辑
摘要: https://www.nowcoder.com/ta/huawei/ https://www.nowcoder.com/exam/oj/ta?tpId=37 https://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da 提交代 阅读全文
posted @ 2022-05-15 15:56 孤舟浮岸 阅读(77) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/djklsajdklsajdlk/article/details/106304764 阅读全文
posted @ 2022-05-14 20:56 孤舟浮岸 阅读(18) 评论(0) 推荐(0) 编辑
摘要: IP地址 IP地址是由4个字节,即32位二进制组成的一个逻辑上的地址。将32位分为4组,每组8位二进制(每组的十进制取值为0到255)。 网络号和主机号:网络号用来标识主机或路由器所连接到的网络,主机号用来标识该主机或路由器。 C类地址 A类地址的要求:IP地址的第一组的第一位是0,所以IP地址的第 阅读全文
posted @ 2022-05-13 23:39 孤舟浮岸 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/two-sum-ii-input-array-is-sorted/ 注意 参数returnSize为址传递,应赋值为2,表示返回的数组长度为2 /** * Note: The returned array must be malloced, 阅读全文
posted @ 2022-05-13 16:44 孤舟浮岸 阅读(34) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/study-plan/sql/ https://leetcode.cn/problems/calculate-special-bonus/ 提交代码 # Write your MySQL query statement below SELECT employe 阅读全文
posted @ 2022-05-13 15:26 孤舟浮岸 阅读(76) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/pengpengdeyuan/p/14364777.html 链接:https://pan.baidu.com/s/1dwqgS9s2wYwof7srJ3vTrw 提取码:1111 突然发现我原本的navicat也是支持sql的case语句的,那么这个 阅读全文
posted @ 2022-05-13 15:12 孤舟浮岸 阅读(168) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/sort-colors/ 提交代码1 void sortColors(int* nums, int numsSize){ int a=0,b=0,c=0,i; for(i=0;i<numsSize;i++){ if(nums[i]==0){ 阅读全文
posted @ 2022-05-12 21:36 孤舟浮岸 阅读(85) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/move-zeroes/ 提交代码1 void moveZeroes(int* nums, int numsSize){ int diff=0; int arr[numsSize]; for(int i=0;i<numsSize;i++){ 阅读全文
posted @ 2022-05-12 20:46 孤舟浮岸 阅读(42) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/wintershii/article/details/80558739 阅读全文
posted @ 2022-05-12 17:30 孤舟浮岸 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 不能被继承,因为String类有final修饰符,而final修饰的类是不能被继承的。 阅读全文
posted @ 2022-05-12 17:26 孤舟浮岸 阅读(155) 评论(0) 推荐(0) 编辑
摘要: list列表 list是一种有序的集合,可以随时添加和删除其中的元素 代码 list = [5, 2, 0] print(list[0]) print(list) list.append(6) print(list) 控制台输出 5 [5, 2, 0] [5, 2, 0, 6] tuple元组 tu 阅读全文
posted @ 2022-05-10 17:03 孤舟浮岸 阅读(324) 评论(0) 推荐(0) 编辑
摘要: '==' 比较的是两个对象的值 'is' 比较的是两个对象的内存地址(id) 代码示例 list1 = [5, 2, 0] list2 = [5, 2, 0] print(id(list1), type(list1)) print(id(list2), type(list2)) print(list 阅读全文
posted @ 2022-05-10 16:40 孤舟浮岸 阅读(88) 评论(0) 推荐(0) 编辑
摘要: https://juejin.cn/post/6997664377155354654 阅读全文
posted @ 2022-05-09 17:05 孤舟浮岸 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 意思是用户root2没有对testdb数据库的相关操作权限 解决办法(在navicat上授予权限): 在navicat上,找到用户,找到root2用户,双击,从常规点击到权限,添加权限,找到testdb数据库,勾上增删改查的权限,保存. OK 阅读全文
posted @ 2022-05-09 16:42 孤舟浮岸 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 之前的数据库操作代码 import pymysql class DAO_recruit_page: def __init__(self): pass def add(self, rec_year, rec_content, rec_uni_name): # 打开数据库连接 db = self.get 阅读全文
posted @ 2022-05-09 16:28 孤舟浮岸 阅读(210) 评论(0) 推荐(0) 编辑
摘要: http://www.coolpython.net/flask_tutorial/index.html https://blog.csdn.net/Littleflowers/article/details/113926184 https://zhuanlan.zhihu.com/p/1482858 阅读全文
posted @ 2022-05-09 13:52 孤舟浮岸 阅读(109) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver import random driver = webdriver.Chrome() driver.get( "https://www.amazon.co.jp/-/zh/ap/signin?openid.pape.max_auth_age 阅读全文
posted @ 2022-05-09 10:59 孤舟浮岸 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 代码1 注意join的位置 import threading import time print('程序开始时间:', time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(time.time())))) start = time.time() 阅读全文
posted @ 2022-05-08 23:09 孤舟浮岸 阅读(149) 评论(0) 推荐(0) 编辑
摘要: import threading import time list = [chr(i) for i in range(ord('a'), ord('z') + 1)] + [chr(i) for i in range(ord('0'), ord('9') + 1)] + ['_'] print('程 阅读全文
posted @ 2022-05-08 22:16 孤舟浮岸 阅读(42) 评论(0) 推荐(0) 编辑