码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
Action方法返回给View集合对象
方法一: 通过ViewBag将集合对象数据传递给View视图 Controller里Action方法如图 View视图里处理ViewBag内存的数据 方法二: Contorller控制器里直接 Return View(集合对象) View视图里最上方先声明 @model IEnumerable<Re ...
分类:其他好文   时间:2021-01-20 11:49:40    阅读次数:0
剑指 Offer 45. 把数组排成最小的数
剑指 Offer 45. 把数组排成最小的数 地址: 剑指 Offer 45. 把数组排成最小的数 输入一个非负整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。 示例 1: 输入: [10,2] 输出: "102" 示例 2: 输入: [3,30,34,5,9] 输 ...
分类:编程语言   时间:2021-01-20 11:43:00    阅读次数:0
C# List与单链表转换
定义简单单链表结构 public class ListNode { public int val; public ListNode next; public ListNode(int val = 0, ListNode next = null) { this.val = val; this.next ...
分类:Windows程序   时间:2021-01-20 11:41:49    阅读次数:0
Python学习-第一遍QA
字符串反转? def reverse(s): if s == "": return s else: print(s[1:]) return reverse(s[1:]) + s[0] def main(): num = "1234" print("num="+num) num = reverse(n ...
分类:编程语言   时间:2021-01-19 12:28:34    阅读次数:0
Codeforces Round #689 (Div. 2, based on Zed Code Competition)D. Divide and Summarize(分治+dfs)
D. Divide and Summarize 题意 给你n个数,q次询问,问你能否具有满足和为s的序列。 思路 再求其有多少种和时需要使用$mid = max + min >> 1$来寻找有多少种和。 然后dfs,但是需要判断一下左面或者右面全部相等情况,否则会爆栈 #include<bits/s ...
分类:其他好文   时间:2021-01-19 12:24:43    阅读次数:0
前端es6总结
前言 学习ES6需要掌握的路线,了解什么是ECMAScript概述,了解Symbol数据类型,掌握let和const,以及变量的解构赋值,Set和Map的原理。 什么叫做箭头函数,ES6对于ES5都有哪些扩展,ES6的一些高级操作。 为了方便查看学习,我做了思维导图,如下图所示: ESMAScrip ...
分类:其他好文   时间:2021-01-19 12:20:55    阅读次数:0
[Leetcode]4. Median of Two Sorted Arrays
题目描述 Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. Follow up: The overall run time ...
分类:其他好文   时间:2021-01-19 12:12:17    阅读次数:0
C++怎么实现多态?
C++通过函数重载或模板实现编译期多态(静态绑定),通过虚函数实现运行时多态(动态绑定)。 函数重载 #include <stdio.h> int add(int a, int b) { return a + b; } int add(double a, double b) { return a + ...
分类:编程语言   时间:2021-01-19 12:08:08    阅读次数:0
Python二维数组,for循环,函数
函数 1 def check(x,y): 2 if x<0 or x>n or y>m or y<0: 3 return False 4 else : 5 return True 类似C的 1 int check(int x,int y) 2 { 3 if(x<0 || x>n || y>m || ...
分类:编程语言   时间:2021-01-19 12:03:46    阅读次数:0
算法入门(五)排序-selece_sor
def select_sort_simple(li): li_new = [] for i in range(len(li)): min_val = min(li) li_new.append(min_val) li.remove(min_val) return li_new def select_ ...
分类:编程语言   时间:2021-01-19 11:43:46    阅读次数:0
60766条   上一页 1 ... 79 80 81 82 83 ... 6077 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!