码迷,mamicode.com
首页 >  
搜索关键字:yield return    ( 62447个结果
Python 知识点练习
1 #函数应用:计算两个正数的最大公约数和最小公倍数 2 def function1(n1,n2): 3 if n1 > n2: 4 n1 , n2 = n2 , n1 5 for i in range(n1,0,-1): 6 if n1 % i == 0 and n2 % i == 0: 7 re ...
分类:编程语言   时间:2021-06-18 19:22:14    阅读次数:0
使用jQuery Autocomplete(自动完成)插件,结合ajax实现搜索框匹配
原文: https://blog.csdn.net/qililong88/article/details/51941641 $("#language").autocomplete({ // 静态的数据源 source: [ { label: "Chinese", value: 1, sayHi: " ...
分类:Web程序   时间:2021-06-18 19:21:14    阅读次数:0
Pyton 练习题2
1 #显示跑马灯文字 2 import os 3 import time 4 def main(): 5 content = str(input('输入显示内容:')) 6 while True: 7 os.system('cls') 8 print(content) 9 time.sleep(0. ...
分类:其他好文   时间:2021-06-18 19:20:19    阅读次数:0
ES5中的访问器属性
ES5——访问器属性 一、描述 自己不存值,只提供对另一个属性(单个属性)的保护功能。除了保护对象属性,同时还起到监视的作用,无论是读取属性值还是修改属性值都能被监听。访问器属性在控制台的对象中以(...)这样的形式存在,其中必定包含get()和set()函数。 二、使用场景 只要想使用自定义规则保 ...
分类:其他好文   时间:2021-06-18 19:00:56    阅读次数:0
744. Find Smallest Letter Greater Than Target
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if i ...
分类:其他好文   时间:2021-06-17 17:13:05    阅读次数:0
使用位运算查找只出现一次的数字
一个数组中只有一个数字出现一次,其他数字都出现两次,请找出这个数字 class Solution { public int singleNumber(int[] nums) { int res = 0; for (int num : nums) { res ^= num; } return res; ...
分类:其他好文   时间:2021-06-17 16:49:19    阅读次数:0
05 函数
函数的定义 # 方式一 start () { echo "nginx start .... [OK]" #return 0 } stop () { echo "nginx stop .... [FAIL]" } # 方式二 function start { echo "nginx start ... ...
分类:其他好文   时间:2021-06-17 16:37:05    阅读次数:0
vue3 组件
基本实例 <div id="vm"> <button-counter></button-counter> </div> <script> const v = Vue.createApp({ data() { return { count: 0 } }, template: `<button @cli ...
分类:其他好文   时间:2021-06-17 16:30:09    阅读次数:0
API 读写cookie的方法
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Net.Http; ...
分类:Windows程序   时间:2021-06-17 16:27:43    阅读次数:0
876. 链表的中间结点
1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * struct ListNode *next; 6 * }; 7 */ 8 9 10 struct ListNode* middleN ...
分类:其他好文   时间:2021-06-16 18:35:48    阅读次数:0
62447条   上一页 1 ... 10 11 12 13 14 ... 6245 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!