1-1,结构化数据建模流程范例 一,准备数据 titanic数据集的目标是根据乘客信息预测他们在Titanic号撞击冰山沉没后能否生存。 结构化数据一般会使用Pandas中的DataFrame进行预处理。 import numpy as np import pandas as pd import m ...
分类:
其他好文 时间:
2021-06-13 09:38:59
阅读次数:
0
VUEX 1、安装 cnpm install vuex--save 2、导入,src下新建一个文件夹vuex,文件夹下新建一个store.js import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex); 3、state 相当于vue项目的 ...
分类:
其他好文 时间:
2021-06-13 09:32:07
阅读次数:
0
ArrayList注意事项(可以放入null,且可以多个null) package com.model.list; import java.util.ArrayList; import java.util.List; /** * @Description:测试类 * @Author: 张紫韩 * @ ...
分类:
编程语言 时间:
2021-06-13 09:29:29
阅读次数:
0
# 1 安装 pip install coreapi # 2 在路由中配置 from rest_framework.documentation import include_docs_urls urlpatterns = [ ... path('docs/', include_docs_urls(t ...
分类:
其他好文 时间:
2021-06-13 09:22:11
阅读次数:
0
import turtle turtle.setup(800,600) turtle.pencolor('pink') for i in range(4): for i in range(2): turtle.circle(80,90) turtle.left(90) turtle.right(90 ...
分类:
编程语言 时间:
2021-06-13 09:20:06
阅读次数:
0
from turtle import * def square(size = 50, rgb = 'orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) fo ...
分类:
其他好文 时间:
2021-06-13 09:19:11
阅读次数:
0
package { import flash.display.MovieClip; import flash.html.HTMLLoader; import flash.net.URLRequest; import fl.core.UIComponent; import flash.display. ...
分类:
Web程序 时间:
2021-06-11 19:15:57
阅读次数:
0
proto编译引用外部包问题 在test.proto文件中引用了一个外部包: import "google/api/annotations.proto"; 当使用命令编译的时候提示找不到包: # protoc --go_out=plugins=grpc:. ./test.proto google/a ...
分类:
其他好文 时间:
2021-06-11 19:07:29
阅读次数:
0
#python之模块py_compile用法(将py文件转换为pyc文件);二进制文件,是由py文件经过编译后,生成的文件. #办法一: import py_compile #加r前缀进行转义 py_compile.compile(r'D:\test.py')#py文件完整的路径. 办法二: #cm ...
分类:
编程语言 时间:
2021-06-11 19:06:54
阅读次数:
0
效果图 import java.awt.*; import java.awt.image.BufferedImage; import java.util.Random; /** * 生成4个字符的验证码,背景颜色、字体颜色、字体类型都随机生成,另外加上干扰线条 */ public class Ver ...
分类:
编程语言 时间:
2021-06-11 18:45:09
阅读次数:
0