zqifa的博客

我不管,反正我最萌~

2022年05月 归档
获取当前安装的python是32位还是64位

本文介绍获取当前安装的python是32位还是64位的方法。

阅读全文

Ubuntu 22.04换国内源 清华源 阿里源 中科大源 163源

Ubuntu 22.04 LTS (Jammy Jellyfish) 的稳定版已经于 2022-04-21 日发布,代号:Jammy Jellyfish,默认内核版本 LTS kernel v5.15,是 Ubuntu 的第 9 个 LTS 版本,国内有很多Ubuntu的镜像源,有阿里的、网易的,教育网的比如:清华源、中科大源。这里以网易163源为例看一下如何修改Ubuntu 22.04的默认源。

阅读全文

linux下netstat command not found问题解决

执行: netstat -an | grep 22 命令报错-bash: netstat: command not found问题解决。

阅读全文

centos7下root用户配置ssh和sftp服务

新安装的centos7服务器,需要root用户远程ssh访问,使用sftp进程文件传输。配置过程如下:开启root用户SFTP服务和SSH服务

阅读全文

centos7 开启sftp服务

centos7 开启sftp服务 环境:centos7 注意:服务器 OpenSSH-Server 版本最低4.8,用 ssh –V 来查看openssh的版本,如果低于4.8,需要自行升级安装。sftp优点:sftp比ftp更可取,加密传输,设置也简单。ftp过于繁琐,且是不安全的协议

阅读全文

Windows下python2 支持中文

Windows下CMD运行python,执行命令 python2 hello.py,因为有中文输出,默认CMD不支持中文,输出一堆乱码。解决方法,步骤如下:

阅读全文

Python2 报错 LookupError: unknown encoding: cp65001 解决办法

Windows下CMD运行python,执行命令 python2 hello.py 报错,报错信息:LookupError: unknown encoding: cp65001。报错原因:编码不一样

阅读全文

pycharm配置python环境教程

最近使用pycharm开发python项目,怎么设置项目的python版本,配置对应python版本解释器呢?软件Pycharm 2022.1版本配置python环境的教程。

阅读全文

php hash算法详解

一、什么是hash 散列(hash,也称“哈希”)是一种重要的存储方式,也是一种常见的检索方法。散列算法(Hash Algorithm),又称哈希算法,杂凑算法,是一种从任意文件中创造小的数字「指纹」的方法。与指纹一样,散列算法就是一种以较短的信息来保证文件唯一性的标志,这种标志与文件的每一个字节都相关,而且难以找到逆向规律。

阅读全文

Windows下Python2与Python3两个版本共存的方法详解

Windows下python2和python3共存方法 方法1:修改python2/3对应python.exe文件名 1.分别安装python2、python3,安装后配置环境变量,将安装目录添加到path环境变量,先后顺序无所谓。

阅读全文

IIS服务器下隐藏index.php的方法,重写规则设置

用Windows server服务器的IIS架设的PHP网站,访问首页会自动在网址后面加上index.php,那么我们如何使IIS服务器隐藏index.php首页文件呢?iis隐藏index.php,需要设置重写规则。

阅读全文

js学习window对象函数window.btoa和window.atob

btoa 和 atob 是window对象的两个函数,用来编码解码Base64 window对象函数window.btoa和window.atob简介 1.btoa:是binary to ascii,用于将binary的数据用ascii码表示,即Base64的编码过程。2.atob:是ascii to binary,用于将ascii码解析成binary数据,即Base64的解码过程。

阅读全文

js实现base64编码解码,使用window对象btoa和atob函数

方法2:使用btoa和atob进行Base64的编码和解码 btoa 和 atob 是window对象的两个函数,其中:1.btoa:是binary to ascii,用于将binary的数据用ascii码表示,即Base64的编码过程。2.atob:是ascii to binary,用于将ascii码解析成binary数据,即Base64的解码过程。

阅读全文

js实现base64编码解码

Base64编码解码原理介绍 1.Base64使用A-Z,a-z,0-9,+,/ 这64个字符. 2.编码原理:将3个字节转换成4个字节( (3X8)=24=(4X6) )先读入3个字节,每读一个字节,左移8位,再右移四次,每次6位,这样就有4个字节了. 3.解码原理:将4个字节转换成3个字节.

阅读全文

golang gorm报错[error] failed to initialize database, got error commands out of sync. Did you run multiple statements at once?问题解决

golang中使用gorm连接mysql数据库报错问题解决。报错信息:[error] failed to initialize database, got error commands out of sync. Did you run multiple statements at once?

阅读全文

mysql报错Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column问题解决

报错信息:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'web_db.articles_tag.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

阅读全文

mysql报错Expression #2 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column问题解决

报错信息:Expression #2 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'web_db.articles_tag.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

阅读全文

公告

昵称:zqifa

站龄: 4年2个月

博客持续完善ing,敬请期待...

打滚求打赏(๑ ̄ ̫  ̄๑)

此处弱弱求打赏~~万一有好心人呢~~

支付宝酱

支付宝赞助

微信酱

微信赞助

随笔分类

php(110)

linux(63)

python(44)

web前端(39)

js(35)

服务器(33)

mysql(30)

html(24)

docker(23)

windows(22)

centos(22)

django(20)

前端设计(18)

git(16)

常用软件(14)

数据库(14)

算法(14)

字符编码(13)

编程进阶(13)

笔记(12)

更多

我的标签

php(106)

linux(47)

python(45)

js(34)

mysql(30)

centos(28)

web前端(23)

docker(22)

windows(22)

django(20)

更多

相册

友情链接

Copyright © zqifa 联系方式:z___qf@163.com