码迷,mamicode.com
首页 >  
搜索关键字:data import    ( 128077个结果
遍历文件夹
import os def traverse_dir(path): for root, dirs, files in os.walk(path): for dir in dirs: dir_path = os.path.join(root, dir) print(dir_path) traverse ...
分类:其他好文   时间:2021-07-05 17:23:58    阅读次数:0
2个视图基类,5个视图扩展类,9个视图子类,视图集,drf自动生成路由
两个视图基类 APIView ?? GenericAPIView # 导入from rest_framework.generics import GenericAPIView??类GenericView 继承了APIView,?class GenericAPIView(views.APIView): ...
分类:其他好文   时间:2021-07-05 17:10:35    阅读次数:0
机器学习sklearn(76):算法实例(三十三)回归(五)线性回归大家族(三)回归类的模型评估指标
0 简介 1 是否预测了正确的数值 from sklearn.metrics import mean_squared_error as MSE MSE(yhat,Ytest) y.max() y.min() cross_val_score(reg,X,y,cv=10,scoring="mean_sq ...
分类:编程语言   时间:2021-07-05 17:07:25    阅读次数:0
五,SQL注入基础
无论学习任何漏洞,都要明白一句话:函数决定漏洞性质,变量决定存不存在漏洞 一,本质 1,漏洞函数:$sql="select * from sys_article where id = $id" 2,可控变量:$id=$_GET['id'];(其它层面的先不考虑) 3,保护: 过滤关键字,进行函数判断 ...
分类:数据库   时间:2021-07-05 17:05:47    阅读次数:0
http.js 的封装
import axios from 'axios'; import iView from 'iview'; const baseApiObj = { production: 'https://imzt.bndxqc.com/api', experience: 'https://imztty.bndx ...
分类:Web程序   时间:2021-07-05 16:58:57    阅读次数:0
29.返回历史子路由
点击首页下的新闻子路由再点击档案,再次点击首页显示的还是新闻子路由。 1.Home.vue data() { return { //1.data定义默认值 path: '/home/news', }; }, activated() { // 2.默认值传入touter console.log('ac ...
分类:其他好文   时间:2021-07-05 16:57:00    阅读次数:0
BIOS功能调用
MOV AH 0;//具体的BIOS调用功能号. INT 16h; //int13h是BIOS调用的入口 ;功能:从键盘读入字符送AL寄存器。执行时,等待键盘输入,一旦输入,字符的ASCII码放入AL中。若AL=0,则AH为输入的扩展码。 ;关于显示和换行可以在自己的程序中另外添加 INT 10H, ...
分类:移动开发   时间:2021-07-05 16:53:56    阅读次数:0
appium报错 Unhandled rejection Error: UiAUtomator shut down unexpectedly
appium报错 Unhandled rejection Error: UiAUtomator shut down unexpectedly 此报错是由于手机端的/data/local/tmp目录下缺少AppiumBootstrap.jar AppiumBootstrap.jar可以在appium的 ...
分类:移动开发   时间:2021-07-05 16:48:57    阅读次数:0
IDEA使用github账号登陆出错
报错信息: invalid authentication data.404 null : Not Found 解决方法: 通过token方法登录 获取一个新的token 起名并赋予相应权限 点击生成 复制生成的token到IDEA PS:注意生成的token只能查看一次,一定要注意保存 ...
分类:其他好文   时间:2021-07-02 16:38:52    阅读次数:0
/tmp满了可能是磁盘满了
网站提示报错 文件无法上传,好像是/tmp满了 实际是数据盘满了 于是先扩容 https://www.cnblogs.com/toumingbai/p/10216142.html 再新加一块磁盘,格式化成ext4 挂载 mkfs.ext4 /dev/vdc mount /dev/vdc /data/ ...
分类:其他好文   时间:2021-07-02 16:36:40    阅读次数:0
128077条   上一页 1 ... 6 7 8 9 10 ... 12808 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!