07 2021 档案
摘要:SELECT * FROM 想查询的表 WHERE 条件列 IN (SELECT MAX/MIN(条件列) FROM TEST.dbo.TEST_1 GROUP BY 想要查找的列) 例如一表中有 员工姓名、编号、所在部门、录入时间 要求,找到每个部门中最后一个加入的员工信息 在TEST数据库中建测
阅读全文
摘要:"""给你一个 32 位的有符号整数 x ,返回将 x 中的数字部分反转后的结果。如果反转后整数超过 32 位的有符号整数的范围 [ - 2 ^ 31 , 2 ^ 31 - 1 ] ,就返回 0。假设环境不允许存储 64 位整数(有符号或无符号)。示例 1:输入:x = 123输出:321示例 2:
阅读全文
摘要:从以下网站摘录的经典题目: Python面试宝典_qq_24816993的博客-CSDN博客_python面试宝典 https://blog.csdn.net/qq_24816993/article/details/81904280 现在考虑有一个 jsonline 格式的文件 file.txt 大
阅读全文
摘要:# -*- coding:UTF-8 -*-from bs4 import BeautifulSoupimport requests, sys"""类说明:下载《笔趣看》网小说"""class downloader(object): def __init__(self, target): self.
阅读全文
摘要:import requests # 导入requests包def HTML_GET(URL): # 用 GET 方式获取数据需要调用 requests 库中的 get 方法,将获取到的数据存到 strhtml 变量中 strhtml = requests.get(url) # Get方式获取网页数据
阅读全文
摘要:# -*- coding:utf-8 -*-# 将文件:F:\python\html\index.html 复制到 F:\python\file\index.html下# 按行读取文件内容,并将结果返回到列表中def readFileAsLine(file_name): print(">>>>>复制
阅读全文
摘要:@for /f %%i in (file.txt) do if exist "d:\yuan\%%i" copy "d:\yuan\%%i" "d:\new" 其中创建的 file.txt 文件中要写入完整的文件名 一行写一个 yuan 就是想要拷贝的文件源地址 new 就是想要拷贝到的位置 如果不
阅读全文
摘要:赋值、浅拷贝、深拷贝 1、 赋值: 只是复制了新对象的引用,不会开辟新的内存空间。 2、 浅拷贝: 创建新对象,其内容是原对象的引用。 3、 深拷贝:和浅拷贝对应,深拷贝拷贝了对象的所有元素,包括多层嵌套的元素。深拷贝出来的对象是一个全新的对象,不再与原来的对象有任何关联。 具体分析如下: 浅拷贝和
阅读全文
摘要:自动对齐格式 Ctrl + K + D 断点 插入断点 F9 删除所有断点 Ctrl + Shift + F9 快速切换下一个活动窗口 CTRL + TAB 关闭当前窗口 CTRL + F4 打开属性窗口 若不小心关闭右下角的属性窗口,可以用 F4 健快速打开 保存窗口内容 仅保存当前一个窗口内容
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.OleDb;using System.Drawing;using System.
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using Sys
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi
阅读全文