码迷,mamicode.com
首页 >  
搜索关键字:int string    ( 220671个结果
java注解
注解 anno1 package com.ding.anno1; /** * @Description TODO * @Author 丁帅帅 * @Date 21/07/24 23:41 * @Version 1.0 */ public class Fu { public void show(){ ...
分类:编程语言   时间:2021-07-26 16:52:58    阅读次数:0
JavaScript:函数柯里化
什么是js柯里化(curry)? 在数学和计算机科学中,柯里化是一种将使用多个参数的一个函数转换成一系列使用一个参数的函数的技术。 举例来说,一个接收3个参数的普通函数,在进行柯里化后,柯里化版本的函数接收一个参数并返回接收下一个参数的函数,该函数返回一个接收第三个参数的函数。最后一个函数在接收第三 ...
分类:编程语言   时间:2021-07-26 16:50:54    阅读次数:0
mysql数据库(9):常用查询的例子
(1)你可以使用以下语句创建示例表: mysql> CREATE TABLE shop ( -> article INT(4) UNSIGNED ZEROFILL DEFAULT '0000' NOT NULL, -> dealer CHAR(20) DEFAULT '' NOT NULL, -> ...
分类:数据库   时间:2021-07-26 16:50:33    阅读次数:0
SQLAlchemy 多对多
参考官网: https://www.pythoncentral.io/sqlalchemy-orm-examples/ 员工部门两个表,中间为多对多关系,这种一般需要创建一个中间表。多对多转换成一对多 from sqlalchemy import Integer, Column, String, F ...
分类:数据库   时间:2021-07-26 16:48:08    阅读次数:0
ClickHouse集群搭建和使用
一、搭建Zookeeper集群 二、配置ClickHouse集群 三、验证集群,没有副本的分布式集群 1、在第一台服务器118.xx.xx.101中 1) 在每个服务端创建一个普通表create table tb_distribute(id UInt16, name String) ENGINE=T ...
分类:其他好文   时间:2021-07-26 16:43:44    阅读次数:0
leetcode-94. 二叉树的中序遍历
####我的菜鸡方法C++实现普通二叉树的中序遍历 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : ...
分类:其他好文   时间:2021-07-26 16:33:12    阅读次数:0
leetcode-144-二叉树的前序遍历
不太明智的c++实现方法: 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode() ...
分类:其他好文   时间:2021-07-26 16:32:32    阅读次数:0
Leeetcode 221 最大正方形 DP
JAVA DP 反向: public final int maximalSquare(char[][] matrix) { int xLen = matrix.length, yLen = matrix[0].length, re = 0; int[][] cache = new int[xLen] ...
分类:其他好文   时间:2021-07-23 17:42:02    阅读次数:0
python json dumps() loads()
dumps() 转换成json loads() 转换成dict import json dict = {'a': 'wo', 'b': 'zai', 'c': 'zhe', 'd': 'li'} string = json.dumps(dict) loads = json.loads(string) ...
分类:编程语言   时间:2021-07-22 17:38:51    阅读次数:0
第一个只出现一次的字符
遍历的话若全部遍历则为N,若遍历k次,则为k class Solution: """ @param str: str: the given string @return: char: the first unique character in a given string """ def first ...
分类:其他好文   时间:2021-07-21 17:39:49    阅读次数:0
220671条   上一页 1 2 3 4 ... 22068 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!