会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
呓语
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页
2020年6月17日
python 进制转换
摘要: 源 目 方法 二进制 八进制 oct(0b1010) 二进制 十进制 int('10', 2) 二进制 十六进制 hex(int('101010'), 2) 八进制 二进制 bin(int('17', 8)) 八进制 十进制 int('17', 8) 八进制 十六进制 hex(int('17', 8
阅读全文
posted @ 2020-06-17 13:10 呓语i
阅读(112)
评论(0)
推荐(0)
2020年6月12日
Linux 查看网速
摘要: #!/bin/bash ethn=$1 while true do RX_pre=$(cat /proc/net/dev | grep $ethn | sed 's/:/ /g' | awk '{print $2}') TX_pre=$(cat /proc/net/dev | grep $ethn
阅读全文
posted @ 2020-06-12 16:07 呓语i
阅读(352)
评论(0)
推荐(0)
shell中的数组
摘要: 数组的定义 array=(v1 v2 v3) array1[0]=v1 array1[1]=v2 array1[2]=v3 names=([0]=i [1]=f [2]=a [3]=n) 获取数组的长度 echo ${#array[*]} echo ${#array[@]} # 数组的索引 echo
阅读全文
posted @ 2020-06-12 14:41 呓语i
阅读(209)
评论(0)
推荐(0)
2020年6月4日
Maven仓库配置
摘要: maven-settings.xml配置本地仓库目录 <localRepository>D:\software\maven\repo</localRepository> maven-settings.xml配置阿里云,中央仓库,CDH仓库 <mirror> <id>alimaven</id> <na
阅读全文
posted @ 2020-06-04 15:57 呓语i
阅读(1486)
评论(0)
推荐(0)
2020年6月3日
Django Session管理
摘要: Session是存储在服务器端的用户凭证,安全性比Cookie要高,Django是将Session信息存放在Cookie里面。用户一旦禁用Cookie,就不能用了。 Session不光可以存储在Cookie里面,如果前端将其存储在页面中,作为全局变量,每次发送,都携带上,和放在Cookie里面的效果
阅读全文
posted @ 2020-06-03 19:00 呓语i
阅读(262)
评论(0)
推荐(0)
Django 缓存
摘要: # 数据库缓存 CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'tbl_cache', # 数据表名称 # 一下为默认值 'TIMEOUT': 60, # 超
阅读全文
posted @ 2020-06-03 12:05 呓语i
阅读(124)
评论(0)
推荐(0)
Django Middle
摘要: from django.utils.deprecation import MiddlewareMixin class TimeMiddleware(MiddlewareMixin): def process_request(self, request): # 请求进入middleware执行的第一个
阅读全文
posted @ 2020-06-03 11:36 呓语i
阅读(106)
评论(0)
推荐(0)
2020年6月2日
单文件启动Django
摘要: import sys from django.conf import settings settings.configure({ DEBUG=True, SECRET_KEY="123456", ROOT_URLCONF=__name__, MIDDLEWARE_CLASSES=( 'django.
阅读全文
posted @ 2020-06-02 19:03 呓语i
阅读(172)
评论(0)
推荐(0)
Linux grep 命令
摘要: grep -C 5 foo file 显示file文件里匹配foo字串那行以及上下5行 grep -B 5 foo file 显示foo及前5行 grep -A 5 foo file 显示foo及后5行
阅读全文
posted @ 2020-06-02 19:02 呓语i
阅读(127)
评论(0)
推荐(0)
pandas 的一些操作
摘要: 删除行 df.drop(['A', 'B'], axis=1) df.drop(columns=['A', 'B']) 删除列 df.drop([0, 1]) 交集,并集,差集操作 pd.merge(df1, df2, on=['name']) # 取交集 pd.merge(df1,df2,on=[
阅读全文
posted @ 2020-06-02 19:00 呓语i
阅读(111)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页
公告