apple 官方文档 https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ ...
分类:
移动开发 时间:
2020-07-27 09:52:52
阅读次数:
89
. PHP 和 MySql 代码实例 query("SELECT CompanyName, City, Country FROM Customers"); $outp = ""; while($rs = $result->fetch_array(MYSQLI_ASSOC)) { if ($outp ...
分类:
其他好文 时间:
2020-07-27 09:52:06
阅读次数:
76
Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number ...
分类:
其他好文 时间:
2020-07-27 09:42:59
阅读次数:
80
先序遍历:根-->左-->右的形式 public static void preOrderTraveralWithStsck(Node node){ Stack<Node> stack = new Stack(); //当节点的左右孩子全为空并且,栈空表示遍历完毕 while (node != nu ...
分类:
编程语言 时间:
2020-07-27 09:42:07
阅读次数:
81
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e5+5;/ ...
分类:
其他好文 时间:
2020-07-26 23:23:20
阅读次数:
105
函数:以功能为导向,减少重复的代码量 在函数中,遇到return 就直接结束函数,并且将值返回给 函数调用者 函数定义 函数名也是一个变量,函数名就是在内存中指向一个内存地址,这个内存地址对应的是一个函数。 def func(): # 用 def 来定义一个函数,func 是函数名 print(12 ...
分类:
编程语言 时间:
2020-07-26 23:18:04
阅读次数:
88
可迭代对象:内部含有‘__iter__’方法的对象 优点: 存储的数据可以直接显示,比较直观 拥有的方法比较多 缺点: 占用内存 不能直接for循环取值,是通过内部转化成迭代器 # dir():获取一个对象的所有方法 s1 = 'abcde' print(dir(s1)) # 输出一个list,内容 ...
分类:
编程语言 时间:
2020-07-26 23:14:52
阅读次数:
80
###思路 这个题不难,就是先Trajan缩点减小点数和边数的规模,然后在缩完点的图上跑DP即可。注意要用toposort解决DP后效性(或者是使用记忆化搜索)。 Code #include<iostream> #include<cstdio> #include<algorithm> #includ ...
分类:
其他好文 时间:
2020-07-26 23:07:29
阅读次数:
56
Java基础语法(下)-数组Array、 数组概略 package com.bird_01; /* * 数组:存储同一钟数据类型的多个元素的容器。 * * 定义格式: * A:数据类型[] 数组名;(推荐) * B:数据类型 数组名[]; * * 举例: * int[] arr;定义了一个int类型 ...
分类:
编程语言 时间:
2020-07-26 23:03:48
阅读次数:
93
1、我的处理: extern "C" { FILE __iob_func[3] = { *stdin,*stdout,*stderr }; } #pragma comment(lib, "legacy_stdio_definitions.lib") 2、 3、vs2015无法解析外部符号__imp_ ...
分类:
其他好文 时间:
2020-07-26 22:54:18
阅读次数:
94