永远喜欢薇尔莉特
码龄13年
关注
提问 私信
  • 博客:114,577
    114,577
    总访问量
  • 51
    原创
  • 1,295,939
    排名
  • 19
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2012-04-16
博客简介:

HelloWorld!

博客描述:
HelloWorld!
查看详细资料
个人成就
  • 获得27次点赞
  • 内容获得13次评论
  • 获得106次收藏
  • 代码片获得4,698次分享
创作历程
  • 55篇
    2021年
成就勋章
TA的专栏
  • redis
    1篇
  • java
    17篇
  • javascript
    7篇
  • linux
    9篇
  • 算法
    2篇
  • python
    14篇
  • mysql
    1篇
  • css
    3篇
  • 数据库
    1篇
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

368人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

mysql分组取前几条记录

第一种方法SELECT id, title, channel, create_timeFROM test_news AS aWHERE ( SELECT count(1) FROM test_news AS b WHERE a.channel = b.channel AND a. STATUS = b. STATUS AND a.id < b.id ) < 5ORDER BY a.channel ASC, a.id DESC;第二种方法SELECT a.id, a.titl.
原创
发布博客 2021.06.26 ·
423 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

使用letsencrypt生成ssl证书

Snap Support The Certbot snap supports the x86_64, ARMv7, and ARMv8 architectures. While we strongly recommend that most users install Certbot through the snap, you can find alternat...
原创
发布博客 2021.06.21 ·
372 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

python发送邮件

#!/usr/bin/python# -*- coding: UTF-8 -*- import smtplibfrom email.mime.text import MIMETextfrom email.header import Header # 第三方 SMTP 服务mail_host="smtp.XXX.com" #设置服务器mail_user="XXXX" #用户名mail_pass="XXXXXX" #口令 sender = 'from@runoob.co
原创
发布博客 2021.05.28 ·
308 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

天天基金爬虫

import requestsfrom bs4 import BeautifulSoupimport pymysqlpymysql.install_as_MySQLdb()def details(url): response = requests.get(url) response.encoding = response.apparent_encoding text = response.text beautifulSoup = BeautifulSoup(tex
原创
发布博客 2021.05.26 ·
635 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

python requests 乱码

response=requests.get('www.test.com')response.encoding = response.apparent_encoding
原创
发布博客 2021.05.26 ·
166 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CSS span 用作标签时 换行会重叠

display: inline-block;
原创
发布博客 2021.05.14 ·
1277 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

设置输入框光标的位置

function setCursorPosition(elem, index) { var val = elem.value var len = val.length // 超过文本长度直接返回 if (len < index) return setTimeout(function() { elem.focus() if (elem.setSelectionRange) { // 标准浏览器 elem.
原创
发布博客 2021.05.14 ·
803 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

每隔一天重启tomcat服务

#!/bin/bashwhile :do # 获取tomcat_id tomcat_id=$(ps -ef | grep apache-tomcat-7.0.91 | grep -v grep | awk '{print $2}') echo "tomcat id -> $tomcat_id" echo "关闭tomcat服务" kill -9 $tomcat_id echo "开启tomcat服务" service tomcat start # 每隔一天重
原创
发布博客 2021.05.14 ·
235 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

python gui Tkinter

Tkinter入门小程序示例代码import tkinter# 创建窗口对象tk = tkinter.Tk()# 创建两个列表组件list_box_1 = tkinter.Listbox(tk)list_box_2 = tkinter.Listbox(tk)# 初始化两个数组li = ['C', 'python', 'php', 'html', 'SQL', 'java']movie = ['CSS', 'jQuery', 'Bootstrap']# 给第一个列表组件插入数据
原创
发布博客 2021.05.01 ·
293 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

使用当前python的版本安装pip

python -m pip install 模块名
原创
发布博客 2021.04.30 ·
269 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

mac设置默认python

研究python爬虫,需要用到Beautiful Soup但是Mac默认的python版本为2.7 自己安装了3.6的版本import 报错查找资料:Mac在启动,会先加载系统配置文件(包括~/.bash_profile ),所有默认的命令的路径,将会配配置文件 (比如:~/.bash_profile)中的路径覆盖,并且,是后面覆盖前面的路径:例如,在终端输入“python”, 系统会在配置文件中的路径查找,一直到找到位置(在配置文件中从后向前找)强烈建议不要直接sudo ln ‑s (会直接覆盖
原创
发布博客 2021.04.30 ·
676 阅读 ·
0 点赞 ·
2 评论 ·
0 收藏

谷歌浏览器查看请求头

原创
发布博客 2021.04.30 ·
710 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

springboot

配置application.properties#访问根路径 #应用名称spring.application.name=springboot-demo #访问端口号server.port=8080 #编码格式server.tomcat.uri-encoding=utf-8 #数据库相关配置spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driverspring.datasource.url=jdbc:mysql://lo
原创
发布博客 2021.04.29 ·
138 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hustoj搭建教程

HUSTOJ流行的OJ系统,跨平台、易安装、有题库。版权说明HUSTOJ is an GPL Free Software.HUSTOJ 是采用 GPL 的自由软件。(仅限原创部分代码,其中使用了其他开源项目的组件,请遵循原组件的协议。)注意:基于本项目源码从事科研、论文、系统开发,请在文中或系统中表明来自于本项目的内容和创意。论文请引用参考文献 基于开放式云平台的开源在线评测系统设计与实现如果打算进行二次开发, Wiki 和这份 文档 可能有帮助。PS: GPL保证你可以合法忽略以上注意
原创
发布博客 2021.04.29 ·
3659 阅读 ·
3 点赞 ·
0 评论 ·
13 收藏

爬虫

Write a program to scrape https://github.com, using requests and Beautiful Soup. The goal is to get, for a given GitHub username, i.e., https://github.com/google, a list of repositories with their GitHub-assigned programming language, the number of forks a
原创
发布博客 2021.04.29 ·
228 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

微信公众号

state参数过长微信公众号授权时,state参数超过了128个字节。
原创
发布博客 2021.04.28 ·
386 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

搭建青岛开源OJ教程

文档地址https://github.com/QingdaoU/OnlineJudge/blob/master/README-CN.md环境准备Linux 环境安装必要的依赖sudo apt-get update && sudo apt-get install -y vim python3-pip curl gitpip3 install --upgrade pippip install docker-compose安装 Docker国内用户使用脚本一键安装:
原创
发布博客 2021.04.28 ·
1702 阅读 ·
0 点赞 ·
0 评论 ·
4 收藏

docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.‘, File

问题描述ocker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.’, FileNotFoundError(2, ‘No such file or directory’))造成原因原因是 docker 没有启动解决办法开启docker:systemctl start docker产看docker 进程ps -ef | grep docker最后执行docker
原创
发布博客 2021.04.28 ·
24322 阅读 ·
14 点赞 ·
5 评论 ·
15 收藏

基本语法

或者-oif [ "$target" = "MYRIAD" -o "$target" = "HDDL" ]; then
原创
发布博客 2021.04.26 ·
253 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

mysql

分页limit (curPage-1)*pageSize,pageSize
原创
发布博客 2021.04.25 ·
124 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多