Python基础01 (three) 内容大纲 1.整型以及布尔值转换 2.字符串详解 1.整型以及布尔值的转换 1.1整型 数字 (int) 1.2十进制转换二进制 1.3二进制转十进制 1.4 十进制转二进制/二进制转十进制 命令 1.5 布尔值 b o o l () 2.字符串的详解 2.1 ...
分类:
编程语言 时间:
2019-07-08 19:37:09
阅读次数:
156
''' 安装解析器: pip3 install lxml 安装解析库: pip3 install bs4 ''' html_doc = ''' The Dormouse's story $37 Once upon a time there were three little sisters; and... ...
分类:
编程语言 时间:
2019-07-03 20:20:47
阅读次数:
127
转账案例 坐标: 创建实体类daomain 创建接口AccountDao.java 创建实现类AccountDaoImpl.java 建接口AccountService.java 创建接口的实现类,AccountServiceImpl.java 配置applicationContext.xml 测试 ...
分类:
编程语言 时间:
2019-07-02 00:36:51
阅读次数:
127
前言 我的上一篇博客的案例中,请求锁的线程如果发现锁已经被其他线程占用,它是通过自旋的方式来等待的,也就是不断地尝试直到成功。本篇就讨论一下另一种方式,那就是挂起以等待唤醒。 注:相关代码都来自《Operating System: Three Easy Pieces》这本书。 自旋哪里不好? 先说明 ...
分类:
其他好文 时间:
2019-06-30 11:13:12
阅读次数:
124
Description Polycarp has guessed three positive integers $a$, $b$ and $c$. He keeps these numbers in secret, but he writes down four numbers on a boar ...
分类:
其他好文 时间:
2019-06-28 23:06:38
阅读次数:
180
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat ...
分类:
其他好文 时间:
2019-06-24 21:08:51
阅读次数:
109
传送门 D. Divide by three, multiply by two ?题意 给你一个数 x,有以下两种操作,x 可以任选其中一种操作得到数 y 1.如果x可以被3整除,y=x/3 2.y=x*2 y 再执行上述两种操作的一种得到数 z; 接着对 z 得到...... 这样依次执行了 n- ...
分类:
其他好文 时间:
2019-06-24 12:32:15
阅读次数:
80
problem 628. Maximum Product of Three Numbers 参考 1. Leetcode_easy_628. Maximum Product of Three Numbers; 完 ...
分类:
其他好文 时间:
2019-06-24 12:20:21
阅读次数:
92
A:Maximum Sum of 3 Non-Overlapping Subarrays 题目:In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Eac ...
分类:
其他好文 时间:
2019-06-24 01:02:59
阅读次数:
105
Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Given a non-e ...
分类:
其他好文 时间:
2019-06-24 00:38:42
阅读次数:
88