自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 shell脚本示例

#!/bin/bash# 使用-n参数,并在最后加上一个空格,可以使得不换行echo -n "hello world "echo "hello world"# $后面的数字会当做引用一个变量echo "the cost is $15"echo "the cost is \$15" # 在变量、等号和值之间不能出现空格,shell脚本会自动决定变量值的类型var1=10var2...

2019-10-26 20:16:46 107

原创 ubuntu中为pip和pip3配置豆瓣源

在家目录中新建文件夹~/.config/pipadog@E531:pip$ pwd/home/adog/.config/pipadog@E531:pip$ lspip3.conf pip.confadog@E531:pip$ 在~/.config/pip目录下新建两个文件pip.conf和pip3.conf,分别对应pip命令和pip3命令。pip.conf和pip3.conf文...

2019-10-21 11:50:07 1045

原创 pyqt5代码实例2

1定义一个Widget# -*- coding: utf-8 -*-# Form implementation generated from reading ui file 'untitled.ui'## Created by: PyQt5 UI code generator 5.13.1## WARNING! All changes made in this file will b...

2019-10-16 21:40:01 1162

原创 pyqt5代码示例

# -*- coding: utf-8 -*-# Form implementation generated from reading ui file 'untitled.ui'## Created by: PyQt5 UI code generator 5.13.1## WARNING! All changes made in this file will be lost!fr...

2019-10-15 21:23:04 997

原创 解决ubuntu16.04中打开txt文档乱码

安装dconf-editorsudo apt install dconf-editor运行命令dconf-editordconf-editor然后在弹出的窗体中按ctrl f搜索encodings然后把candidate-encodings对应的value改为如下所示['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', ...

2019-10-13 22:13:18 280

原创 在linux中递归将所有当前文件夹中的的文件拷贝到当前目录下

mv `grep "*" -rl .` ./

2019-10-08 21:55:37 1072

原创 求最长回文子串的中心扩展算法

给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。示例 1:输入: “babad”输出: “bab”注意: “aba” 也是一个有效答案。示例 2:输入: “cbbd”输出: “bb”来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-palindromic-subs...

2019-10-04 11:21:23 338

原创 在ubuntu中查看chm文件

安装aptitudesudo apt-get install aptitude安装kchmviewersudo aptitude install kchmviewer打开chm文件

2019-10-04 09:47:08 3381 2

原创 [input]

题目Mom? how can I pass my input to a computer program?ssh [email protected] -p2222 (pw:guest)c语言代码/* * d.c * * Created on: 2019年10月3日 * Author: adog */#include <stdio.h>#include ...

2019-10-03 16:25:49 211

原创 [passcode]

Mommy told me to make a passcode based login system.My initial C code was compiled without any error!Well, there was some compiler warning, but who cares about that?ssh [email protected] -p2222 (...

2019-10-01 20:54:28 573

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除