码迷,mamicode.com
首页 >  
搜索关键字:inpu    ( 7831个结果
城市网络
城市网络 Problem: 有一个树状的城市网络(即 n 个城市由 n-1 条道路连接的连通图),首都为 1 号城市,每个城市售卖价值为 a_i 的珠宝。 你是一个珠宝商,现在安排有 q 次行程,每次行程为从 u 号城市前往 v 号城市(走最短路径),保证 v 在 u 前往首都的最短路径上。 在每次 ...
分类:其他好文   时间:2020-07-27 13:46:38    阅读次数:63
MapReduce
1.1 MapReduce定义 1.2 MapReduce优缺点 1.2.1 优点 1.2.2 缺点 1.3 MapReduce核心思想 1)分布式的运算程序往往需要分成至少2个阶段。 2)第一个阶段的MapTask并发实例,完全并行运行,互不相干。 3)第二个阶段的ReduceTask并发实例互不 ...
分类:其他好文   时间:2020-07-26 23:12:54    阅读次数:73
vue.js入门开发
vue.js入门开发 vue {{}} 双向数据绑定 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-s ...
分类:Web程序   时间:2020-07-26 00:05:48    阅读次数:75
axios
下载: cnpm i axios main.js中的引入和使用: import axios from 'axios' Vue.prototype.$http = axios ####get请求: <template> <div id="login"> <input type="text" name= ...
分类:移动开发   时间:2020-07-25 23:52:16    阅读次数:157
283. Move Zeroes
package LeetCode_283 /** * 283. Move Zeroes * https://leetcode.com/problems/move-zeroes/description/ * * Given an array nums, write a function to move ...
分类:其他好文   时间:2020-07-25 09:55:29    阅读次数:69
获取键盘输入信息常用的两种方法
1.Scanner 1 Scanner sc = new Scanner(System.in); 2 String s1 = sc.next(); 3 String s2 = sc.nextLine(); 4 int a = sc.nextInt(); 2.BufferedReader 1 Buff ...
分类:其他好文   时间:2020-07-24 16:31:42    阅读次数:80
1.流程控制--if
流程控制--if -*- coding:utf-8 -*- #定义字符编码 1.判断条件if age = input("输入年龄:") #将交互式输入内容赋值给age,默认内容为字符串类型 if int(age) >= 18: #再做判断之前将变量定义为int整数类型,因为字符串类型无法与数值做比较 ...
分类:其他好文   时间:2020-07-24 15:42:43    阅读次数:57
2.while循环
while循环 #-*- coding: utf-8-*- #指定识别utf-8的字符串 1.while循环以及跳出循环 while True: #无限循环 print('i love pyhon') break; #跳出循环 2.变量控制while循环 flage = True #赋值true给变 ...
分类:其他好文   时间:2020-07-24 15:41:17    阅读次数:62
springboot环境下使用pageHelper插件进行分页
springboot环境下使用pageHelper插件进行分页 背景 这两天一直在重构自己的blog系统,更换持久层框架(之前使用Spring Data JPA,别问为什么换,问就是觉得不会用),更换成为Mybatis,但是在系统中有用的分页的业务,所以查询了pageHelper进行分页处理。 分析 ...
分类:编程语言   时间:2020-07-24 15:37:12    阅读次数:73
luffy-短信接口频率限制,以及前端发送,和注册
短信接口频率限制 # throttlings.py from rest_framework.throttling import SimpleRateThrottle class SMSThrottling(SimpleRateThrottle): scope = 'sms' def get_cach ...
分类:其他好文   时间:2020-07-23 23:20:56    阅读次数:75
7831条   上一页 1 ... 21 22 23 24 25 ... 784 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!