码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
简单的python爬虫图片获取
# 图片爬取 import re import urllib import urllib.request def gethtml(url): page=urllib.request.urlopen(url) html=page.read() return html def getimg(html): ...
分类:编程语言   时间:2021-03-16 14:08:34    阅读次数:0
剑指 Offer 58 - II. 左旋转字符串
仅供自己学习 思路: 可以直接把0~n-1的位置的元素加入到s后面,然后再把0~n-1的元素删除即可。分别调用append,erase函数 代码: 1 class Solution { 2 public: 3 string reverseLeftWords(string s, int n) { 4 ...
分类:其他好文   时间:2021-03-16 14:08:17    阅读次数:0
分页操作
传入参数 AcurrentPage当前第几页 APageSize一页多少条 AALLtableData 要本分页的原数组 aa分页后条数数组 lat aa=this.pagination(this.AcurrentPage, this.APageSize, this.AALLtableData); ...
分类:其他好文   时间:2021-03-16 14:05:28    阅读次数:0
Vue 动态引入
界面 <template> <div align="center" > <component :is='modelUrl' ref='child' :data='data' ></component> </div> </template> 定义 data() { return { modelUrl: ...
分类:其他好文   时间:2021-03-16 14:03:20    阅读次数:0
关于yield
最近被yield关键字难住了 生成器这个东西和yield纠缠在一起了 头痛 先写写我对yield的理解,等以后学透彻了 再来整理 1、yield的作用给人的感觉和return差不多,但是return是函数的结束(闭包除外),带有yield的函数在yield哪那里也会停下来 默认下返回None,携带着 ...
分类:其他好文   时间:2021-03-16 13:53:21    阅读次数:0
P1782 旅行商的背包
#include <cmath> #include <queue> #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define int long lon ...
分类:其他好文   时间:2021-03-16 13:45:35    阅读次数:0
排序算法
冒泡排序 1.动图演示 2.代码实现 private static void bubbleSort(int[] arr) { if (arr.length <= 1) return; for (int i = 0; i < arr.length; i++) { // 用于标识数组是否有序 boole ...
分类:编程语言   时间:2021-03-16 13:24:13    阅读次数:0
程序设计入门(C语言) - 翁恺
#第一周 程序设计与C语言 #include <stdio.h> int main() { printf("%d\n",12+34); return 0; } %d表示后面有一个整数要输出在这个位置上 #第二周 计算 ##2.1 变量 scanf("%d,&price"); 要求scanf()这个函 ...
分类:编程语言   时间:2021-03-16 13:23:53    阅读次数:0
二叉树——leetcode 114. 二叉树展开为链表
void flatten(TreeNode root) { // base case,即最小 if (root == null) return; flatten(root.left); flatten(root.right); /**** 后序遍历 ****/ // 1、保存原来的左右节点,避免变换 ...
分类:其他好文   时间:2021-03-16 11:50:33    阅读次数:0
用C程序打印空心星形 右倒置直角三角形
解题思路 用10*10网格 第0行打印0个空格10个星 第1行打印1个空格 第2行打印2个空格 以此类推 从第1行开始列如果(j0||j10-i-1)则打印星,否则打印空格 /* 打印如下: ********** * * * * * * * * * * * * * * ** * */ #includ ...
分类:其他好文   时间:2021-03-16 11:47:28    阅读次数:0
60766条   上一页 1 ... 55 56 57 58 59 ... 6077 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!