码迷,mamicode.com
首页 > 全部 > 周排行
Python [练习题] :字典扁平化
字典扁平化习题:将以下字典扁平化,输出为 target 字典格式source = {'a': {'b': 1, 'c': 2}, 'd': {'e': 3, 'f': {'g': 4}}}target = {'a.b': 1, 'd.f.g': 4, 'd.e': 3, 'a.c': 2} ...
分类:编程语言   时间:2018-01-25 23:08:47    阅读次数:269
LeetCode: 56. Merge Intervals(Medium)
1. 原题链接 https://leetcode.com/problems/merge-intervals/description/ 2. 题目要求 给定一个Interval对象集合,然后对重叠的区域进行合并。Interval定义如下 例如下图中,[1, 3] 和 [2, 6]是有重叠部分的,可以合 ...
分类:其他好文   时间:2018-01-25 23:08:54    阅读次数:173
javax.swing.jFrame
原文地址:java布局管理器总结作者:技术羊 之前在使用的过程中一直对java中swing的布局管理器感到很困惑,以下是在网上找到的一篇文章。其中我重点关注了一下gridbaglayout。写的比较详尽: BorderLayout FlowLayout GridLayout GridBagLayou ...
分类:编程语言   时间:2018-01-25 23:09:03    阅读次数:220
Django之ORM操作
前言 Django框架功能齐全自带数据库操作功能,本文主要介绍Django的ORM框架 到目前为止,当我们的程序涉及到数据库相关操作时,我们一般都会这么搞: 创建数据库,设计表结构和字段 使用 MySQLdb 来连接数据库,并编写数据访问层代码 业务逻辑层去调用数据访问层执行数据库操作 ORM是什么 ...
分类:其他好文   时间:2018-01-25 23:09:15    阅读次数:318
我们要如何去选择选择PMP培训机构呢?
对于很多想要参加pmp培训考试的人来说,首先就会遇到一个问题,就是我要怎么去选择一个好的PMP培训机构呢,如今市场上pmp的培训机构很多也很乱,到底那家会好呢,怎么去选择,没有一个判写标准呢?下面我就从我自己参加交大慧谷pmp培训到通过的一些经验分享吧,希望能帮助到大家,让大家能清楚的知道自己要如何去选择一个合适自己的pmp培训机构,最后当然也祝贺大家都能拿到pmp证书。
分类:其他好文   时间:2018-01-25 23:09:24    阅读次数:184
python 基础 4 常用的运算符
a = True or False and True print(a) 结果:True list1 = [1,2,3,4,5,18,32,16 ] a = 10 b = 32 if a not in list1: print("correct,%s is not in %s"%(a,list1)) ...
分类:编程语言   时间:2018-01-25 23:09:32    阅读次数:227
使用WebMvcConfigurerAdapter 做登录,失效的一个小小原因
玩转spring boot——简单登录认证 ...
分类:Web程序   时间:2018-01-25 23:09:41    阅读次数:418
docker 如何查看已存在的容器所挂载的目录
$ docker inspect container_name | grep Mounts -A 20 ...
分类:其他好文   时间:2018-01-25 23:09:49    阅读次数:2515
[LeetCode] Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each num ...
分类:其他好文   时间:2018-01-25 23:09:56    阅读次数:175
TF:利用TF的train.Saver载入曾经训练好的variables(W、b)以供预测新的数据
import tensorflow as tf import numpy as np W = tf.Variable(np.arange(6).reshape((2, 3)), dtype=tf.float32, name="weights") b = tf.Variable(np.arange(3... ...
分类:其他好文   时间:2018-01-25 23:10:04    阅读次数:452
Python 编码(一)— Python3
Unicode 什么是 Unicode 标准 unicode 标准 Unicode 为每个字符提供了一个独特的数字,并且跨平台、设备、应用或者编程语言都是通用的。 来自 http://unicode.org/standard/WhatIsUnicode.html Unicode 什么是 Unicod ...
分类:编程语言   时间:2018-01-25 23:10:12    阅读次数:251
docker 离线环境安装oracle
因测试需要,需在内网的测试环境搭建一套docker Oracle 11g环境进行测试,测试环境为redhat 6.6 安装docker 1.7,本机windows 7 环境,安装docker 17.12 1、在windows下联网获取Oracle镜像,并新建容器,wnameless/oracle-x ...
分类:数据库   时间:2018-01-25 23:10:18    阅读次数:1112
Python3 的函数
1、编写power(x,y)函数返回x的y次幂值 2、求最大公约数 3、十进制到二进制转换 ...
分类:编程语言   时间:2018-01-25 23:10:24    阅读次数:206
matplot绘图无法显示中文的问题
手动添加: ...
分类:其他好文   时间:2018-01-25 23:10:31    阅读次数:187
day6-Python学习笔记(十三)redis数据库
import redisr = redis.Redis(host='211.149.218.16',port=6379,password='123456',db=2)#连上redisprint(r.get('hahahsfdfsdf'))#r.set('nhy_session','201801211 ...
分类:数据库   时间:2018-01-25 23:10:39    阅读次数:243
Kubernetes下的Java应用监控
Grafana配置 datasource配置 新建一个Dashboard 点击Panel Title,然后选择编辑Edit 选择相应的指标,形成报告。 ...
分类:编程语言   时间:2018-01-25 23:10:46    阅读次数:232
[LeetCode] Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solution is: [ [2,4], [3,4 ...
分类:其他好文   时间:2018-01-25 23:10:54    阅读次数:194
<C++ - 继承02> 2018-01-24
01、继承: 02、虚继承: 03、实例: ...
分类:编程语言   时间:2018-01-25 23:11:02    阅读次数:254
[LeetCode] Combination Sum
Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums ...
分类:其他好文   时间:2018-01-25 23:11:12    阅读次数:176
忘记MySQL root密码,如何不重启修改
说个前提:mysqld可以处理kill命令发送的信号,如SIGHUP、SIGTERM,SIGHUP信号产生的行为类似于flush命令。 不重启找回root密码首先需要有个较低权限的账号,比如可以修改test库,或者可以操作任意业务数据库的账号。这里借助test库进行修改。 1、将mysql.user ...
分类:数据库   时间:2018-01-25 23:11:20    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!