上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 60 下一页
摘要: app.js import Vue from 'vue'import App from './App.vue' import ElementUI from "element-ui";import 'element-ui/lib/theme-chalk/index.css';Vue.use(Eleme 阅读全文
posted @ 2019-08-09 09:58 水至清明 阅读(229) 评论(0) 推荐(0) 编辑
摘要: db.js const mongoose = require('mongoose');mongoose.connect('mongodb://用户xxxx:密码xxxxx@连接xxxxxx:端口xxxxx/数据库名xxxxx', {useNewUrlParser:true});mongoose.se 阅读全文
posted @ 2019-08-09 09:58 水至清明 阅读(799) 评论(0) 推荐(0) 编辑
摘要: api.js const bugs = require('../model/db').bugs;const ideas = require('../model/db').ideas;const express = require('express');const router = express.R 阅读全文
posted @ 2019-08-09 09:58 水至清明 阅读(213) 评论(0) 推荐(0) 编辑
摘要: template.html <!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link href="htt 阅读全文
posted @ 2019-08-09 09:57 水至清明 阅读(167) 评论(0) 推荐(0) 编辑
摘要: App.vue <template> <div id="app" class="app"> <div class="heard" id="heard"> <h1>部门统计</h1> </div> <div id="Statistics"> <div id="heard3"> <h4>统计项</h4> 阅读全文
posted @ 2019-08-09 09:57 水至清明 阅读(3851) 评论(0) 推荐(0) 编辑
摘要: 1.为了跳过for循环里的某次循环,以下代码当某次循环发生错误时,执行except代码块,continue跳过该次循环: for i in range(x): try: i += 1 print(i) except: continue 2. 还可以写成这样,遇到错误执行except代码块,pass忽 阅读全文
posted @ 2019-08-08 17:21 水至清明 阅读(5740) 评论(0) 推荐(0) 编辑
摘要: 一、常见错误总结AttributeError 试图访问一个对象没有的树形,比如foo.x,但是foo没有属性xIOError 输入/输出异常;基本上是无法打开文件ImportError 无法引入模块或包;基本上是路径问题或名称错误IndentationError 语法错误(的子类) ;代码没有正确对 阅读全文
posted @ 2019-08-08 17:19 水至清明 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: 主要使用 pillow 如果没有安装 使用 pillow install pillow 安装一下 看代码: from PIL import Imageimport argparse #字符画所用的字符集ascii_char = list("$@B%8&WM#*oahkbdpqwmZO0QLCJUYX 阅读全文
posted @ 2019-08-08 17:15 水至清明 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 编程库1.timeimport timeprint(time.time())time = time.localtime( time.time() )print(time)print(time.tm_year)"""1563803665.310865time.struct_time(tm_year=2 阅读全文
posted @ 2019-08-08 17:13 水至清明 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 基础数据类型Number整数/浮点数String字符串Boolean布尔值True和False空值None不是0Tuple元组类型不必统一(1,‘abc’,0.4)Dictionary key-valueList内置数据类型:列表[1,‘abc’,0.4],list是一种有序的集合,可以随时添加和删 阅读全文
posted @ 2019-08-08 17:12 水至清明 阅读(91) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 60 下一页