上一页 1 2 3 4 5 6 ··· 8 下一页

2021年3月13日

校正图形

摘要: 由于之前绘制squares列表图表时,图上点位与坐标轴刻度对应不上,特此修复 import matplotlib.pyplot as plt input_values = [1,2,3,4,5] # 新加变量input_values,为将与squares组成横纵坐标点 squares = [1,4, 阅读全文

posted @ 2021-03-13 23:28 winecork 阅读(52) 评论(0) 推荐(0) 编辑

修改标签文字和线条粗细

摘要: import matplotlib.pyplot as plt squares = [1,4,9,16,25] fig,ax = plt.subplots() ax.plot(squares,linewidth=15) # 设置折线宽度15 ax.set_title("Title",fontsize 阅读全文

posted @ 2021-03-13 23:12 winecork 阅读(222) 评论(0) 推荐(0) 编辑

matplotmib绘制简单折线图

摘要: 安装matplotlib模块 $ python -m pip install matplotlib 绘制简单折线图 import matplotlib.pyplot as plt # 导入模块matplotlib并起别名plt,方便调用 squares = [1,4,9,16,25] # 创建列表, 阅读全文

posted @ 2021-03-13 22:56 winecork 阅读(160) 评论(0) 推荐(0) 编辑

2020年12月14日

使用win32Diskimager后恢复U盘(合并U盘容量)

摘要: 问题描述:使用win32diskimage做kali启动u盘后,发u盘变成两个(其中一个容量只有几百k),合并u盘,回复原来容量;操作步骤:Win+R 运行 cmd,输入diskpartDISKPART> list disk //一般磁盘0为本地磁盘,磁盘1为可移动磁盘(u盘),根据容量查看即可 磁 阅读全文

posted @ 2020-12-14 10:56 winecork 阅读(421) 评论(0) 推荐(0) 编辑

2020年11月26日

linux进程与端口

摘要: 1.通过进程名查其占用端口: 查看进程名PID # ps -ef | grep 进程名 根据pid查看占用端口 # netstat -nap | grep PID # ps -ef|grep ssh root 17231 9429 0 10:32 ? 00:00:00 sshd: patrol [p 阅读全文

posted @ 2020-11-26 10:44 winecork 阅读(146) 评论(0) 推荐(0) 编辑

2020年11月21日

centos 7.6 忘记root密码

摘要: 按e进入编辑页面 在LANG=en_US.UTF-8 后面添加 rw single init=/bin/bash ctrl+x 组合键重启,通过passwd重置root密码 如果开启了SELinux,执行命令touch /.autorelabel命令 输入exec /sbin/init命令重启系统 阅读全文

posted @ 2020-11-21 11:26 winecork 阅读(327) 评论(0) 推荐(0) 编辑

2020年10月30日

Authentication token is no longer valid; new one required You (oracle) are not allowed to access to (crontab) because of pam configuration.

摘要: -bash-4.1$ crontab -e Authentication token is no longer valid; new one requiredYou (oracle) are not allowed to access to (crontab) because of pam conf 阅读全文

posted @ 2020-10-30 11:23 winecork 阅读(187) 评论(0) 推荐(0) 编辑

2020年10月26日

存储过程

摘要: create or replace procedure Hello is h number; g char(20); begin select extract(hour from systimestamp)+8 into h from dual; if h >=20 or h<=5 then g:= 阅读全文

posted @ 2020-10-26 15:48 winecork 阅读(40) 评论(0) 推荐(0) 编辑

oracle extract()函数

摘要: select extract(year from sysdate) as year , extract(month from sysdate) as month, extract(day from sysdate) as day from dual; //使用extract()函数,分别取出年月日 阅读全文

posted @ 2020-10-26 15:30 winecork 阅读(296) 评论(0) 推荐(0) 编辑

2020年9月26日

1130 Host '192.168.241.128' is not allowed to connect to this MySql server

摘要: 参考:https://blog.csdn.net/h996666/article/details/80917268 # /mysql/bin/mysql -uroot -proot_123 -S /mysql/data/mysql.sock //登陆mysql mysql: [Warning] Us 阅读全文

posted @ 2020-09-26 16:39 winecork 阅读(206) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 8 下一页

导航