1. 第一节安装及创建项目 1.1 安装nodejs https://nodejs.org/en/download/ (根据自己的电脑系统选择下载版本) 下载完成点击【Next】一直到【install】 node -v 查看是否安装完成 >> v12.14.1 表示安装成功 npm -v 查看npm ...
分类:
其他好文 时间:
2020-01-16 18:59:07
阅读次数:
95
1 import tensorflow as tf 2 import numpy as np 3 4 """ 5 使用tensorflow 实现简单的 线性回归 y = np.dot(x, W) + b 6 """ 7 8 def f1(): 9 """ 10 先使用常量进行构建,展示大致的业务逻辑 ...
分类:
其他好文 时间:
2020-01-15 14:08:13
阅读次数:
74
linux 安装Python3 1.python下载 请在终端输入如下命令: cd /home wget http://cdn.npm.taobao.org/dist/python/3.6.5/Python-3.6.5.tgz 说明:这句话的作用主要是用wget软件(初学者请自行了解次软件,以后会经 ...
分类:
数据库 时间:
2020-01-14 16:39:25
阅读次数:
150
一、安装环境 1、本机系统:Windows 10 Pro(64位) 2、Node.js:v6.9.2LTS(64位) 二、安装Node.js步骤 1、下载对应你系统的Node.js版本:https://nodejs.org/en/download/ 2、选安装目录进行安装 3、环境配置 4、测试 三 ...
1.Shell shell是一个命令行解释器,它为用户提供了一个向 Linux 内核发送请求以便运行程序的系统级程序 2.shell编程打印hello world 2.1 代码部分 代码解释: 1. !/bin/bash: ? 告诉计算机,使用bash解释器来执行代码 2.echo: ? 控制台输出 ...
分类:
系统相关 时间:
2020-01-14 00:13:17
阅读次数:
269
处理静态文件 对于 HTML 页面中的 css 以及 js 等静态文件,需要使用使用 net/http 包下的以下 方法来处理 1) StripPrefix 函数 2) FileServer 函数 3) 例如: 会匹配 以 开发的路径,当浏览器请求 页面中的 s文件时, 前缀会被替换为 ,然后去 目 ...
分类:
Web程序 时间:
2020-01-13 19:43:57
阅读次数:
103
/* 清除默认样式 *//**{margin:0; padding:0;font-size:12px;font-family:"微软雅黑";color: #666; border: none;}*//*去掉所有元素的边框*//**:focus { outline: none; }*/html, bo ...
分类:
Web程序 时间:
2020-01-13 14:27:44
阅读次数:
103
单个组件引用,引入此文件js。全局使用,注册到vue的main文件Vue.prototype.create = Create import Vue from 'vue';import Toast from './toast'; 组件名 function create(component, props ...
分类:
其他好文 时间:
2020-01-12 20:07:39
阅读次数:
106
1 class Solution: 2 def matrixBlockSum(self, mat: 'List[List[int]]', K: int) -> 'List[List[int]]': 3 r,c = len(mat),len(mat[0]) 4 prefixsum = [[0 for ...
分类:
其他好文 时间:
2020-01-12 09:24:06
阅读次数:
65