首页 > 2020年02月07日 > 全部分享
python学习进度4(条件判断)
恢复内容开始 计算机之所以能做很多自动化的任务,因为它可以自己做条件判断。 比如,输入用户年龄,根据年龄打印不同的内容,在Python程序中,用if语句实现: age = 20 if age >= 18: print('your age is', age) print('adult') 根据Pyth ...
分类:编程语言   时间:2020-02-07 11:07:01    收藏:0  评论:0  赞:0  阅读:63
PP: Learning representations for time series clustering
Problem: time series clustering TSC - unsupervised learning/ category information is not available. time-series clustering for anomaly detection/ patt ...
分类:其他   时间:2020-02-07 11:06:06    收藏:0  评论:0  赞:0  阅读:82
Leetcode 235. Lowest Common Ancestor of a Binary Search Tree
lca算法思路总结: 思想:二叉查找树的性质,如果是祖先,和左右子树的差值乘积为负数。 如果在左边,往左边进行递归。如果往右边,往右边递归。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeN ...
分类:其他   时间:2020-02-07 11:04:00    收藏:0  评论:0  赞:0  阅读:46
刷题--二分法相关--三步翻转法
直接看例题。 例 lintcode 39. Recover Rotated Sorted Array https://www.lintcode.com/problem/recover-rotated-sorted-array/description 比如[4,5,1,2,3],算法是找到反转点5, ...
分类:其他   时间:2020-02-07 11:00:07    收藏:0  评论:0  赞:0  阅读:65
寒假学习进度八
今天在菜鸟驿站上学习scala的语法: 交互式编程不需要创建脚本文件,可以通过以下命令调用: $ scala Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_31). Type in exp ...
分类:其他   时间:2020-02-07 10:59:22    收藏:0  评论:0  赞:0  阅读:72
spark学习进度6-Python爬取数据的四个简单实例
今天本来想把昨天安装的intellij配置好,但是一直显示没有网络,网上查了相关资料也没有查出来解决办法。 然后暂停了intellij的配置,开始做了几个Python爬取简单数据的实例,先做了几个最简单的,以后再加大难度(用idle编码): (1)京东商品页面爬取: 链接:https://item. ...
分类:编程语言   时间:2020-02-07 10:57:34    收藏:0  评论:0  赞:0  阅读:118
Java 设计模式之抽象工厂模式
抽象工厂模式(Abstract Factory Pattern)是围绕一个超级工厂创建其他工厂。该超级工厂又称为其他工厂的工厂。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。 在抽象工厂模式中,接口是负责创建一个相关对象的工厂,不需要显式指定它们的类。每个生成的工厂都能按照工厂模 ...
分类:编程语言   时间:2020-02-07 10:55:27    收藏:0  评论:0  赞:0  阅读:75
汉语-词语-停留:百科
停留,指暂时留在某处,不继续前进。如:在北京停留三天,以游览名胜古迹。 1、 中文名:停留 外文名:stop拼 音: tíng liú注 音:ㄊㄧㄥˊ ㄌㄧㄡˊ 目录 1 词语解释 2 出处及典故 词语解释 谓不继续前进或移动。 出处及典故 (1)晋干宝《搜神记》卷十五:“望君之容,必是贤者,是以停 ...
分类:其他   时间:2020-02-07 10:53:46    收藏:0  评论:0  赞:0  阅读:56
Is default(CancellationToken) equivalent to CancellationToken.None?(转载)
问 Looking at the implementation of CancellationToken.None, it is simply returning default(CancellationToken). However, I see no reference in Cancellat ...
分类:其他   时间:2020-02-07 10:51:08    收藏:0  评论:0  赞:0  阅读:92
python 第一次主要是if while 奇偶数的练习
例如输出1-10的数字,但是7除外。 a=1 while a < 11: if a == 7: pass else: print(a) a=a+1 输出1-100所以的偶数 a=1 while a < 101: temp = a % 2 if temp = 0: print(a) else: pas ...
分类:编程语言   时间:2020-02-07 10:48:49    收藏:0  评论:0  赞:0  阅读:83
Leetcode 404. Sum of Left Leaves
要实现得到左叶子节点的和,我们加一个bool leftLeaf,代表左叶子,递归的时候,加上这个属性,就可以求得和 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * ...
分类:其他   时间:2020-02-07 10:47:23    收藏:0  评论:0  赞:0  阅读:75
Leetcode 101. Symmetric Tree
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
分类:其他   时间:2020-02-07 10:46:11    收藏:0  评论:0  赞:0  阅读:63
OJ在线编程常见输入输出练习场
时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 计算一系列数的和 输入描述: 输入数据包括多组。每组数据一行,每行的第一个整数为整数的个数n(1 <= n <= 100), n为0的时候结束 ...
分类:其他   时间:2020-02-07 10:44:44    收藏:0  评论:0  赞:0  阅读:329
Leetcode 100. Same Tree
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
分类:其他   时间:2020-02-07 10:43:20    收藏:0  评论:0  赞:0  阅读:64
localhost与127.0.0.1的区别
1. localhost是本地服务器,127.0.0.1是本机服务器,他们的解析是通过本机的host文件,windows自动将localhost解析为127.0.0.1; 2. localhost是不经过网卡传输,它不受网络防火墙和网卡相关的设置,而127.0.0.1或本机IP是通过网卡传输的,它受 ...
分类:其他   时间:2020-02-07 10:42:24    收藏:0  评论:0  赞:0  阅读:46
并发编程之原子类
Java从JDK 1.5开始提供了java.util.concurrent.atomic包(以下简称Atomic包),这个包中 的原子操作类提供了一种用法简单、性能高效、线程安全地更新一个变量的方式。 :baby_chick: 内部都是采用CAS+volatile实现了无锁并发 这节不讲原理,只讲如 ...
分类:其他   时间:2020-02-07 10:40:00    收藏:0  评论:0  赞:0  阅读:53
Vulkan SDK 之 Graphics Pipeline
A graphics pipeline consists of shader stages, a pipeline layout, a render pass, and fixed-function pipeline stages. Dynamic State A dynamic pipeline ...
分类:其他   时间:2020-02-07 10:38:00    收藏:0  评论:0  赞:0  阅读:78
nessus
Nessus 是目前全世界最多人使用的系统漏洞扫描与分析软件。总共有超过75,000个机构使用Nessus 作为扫描该机构电脑系统的软件。 centos7环境下 Nessus安装以后长时间没用,突然忘记用户名跟密码,简单的命令修改密码: 1. 跳转到Nessus目录 cd /opt/nessus/s ...
分类:其他   时间:2020-02-07 10:34:06    收藏:0  评论:0  赞:0  阅读:85
【React Native错误集】Import fails with "Failed to execute 'ImportScripts' on 'WorkerGlobalScope'"
错误1、Import fails with "Failed to execute 'ImportScripts' on 'WorkerGlobalScope'" 解决1、如果是在Degbug模式下,关闭turn off Debug JS Remotely。再重新运行即可。 错误2:rn报错 unha ...
分类:其他   时间:2020-02-07 10:33:23    收藏:0  评论:0  赞:0  阅读:734
无法连接上 repo.windscribe.com:443 (8.7.198.45),连接超时
无法连接上 repo.windscribe.com:443 (8.7.198.45),连接超时 "请问这个是什么问题(不知道该怎么办诶)" "求教windscribe有没有其他源呢?谢谢~" ...
分类:Windows开发   时间:2020-02-07 10:29:28    收藏:0  评论:0  赞:0  阅读:425
1242条   上一页 1 ... 48 49 50 51 52 ... 63 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!