![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
JanFangZ
坚持,坚持就好了!
展开
-
第二部分 程序的控制结构 - 1
目录程序的控制结构PM2.5空气质量提醒(分支结构)身体质量指数BMI蒙特卡罗方法求解π值异常处理的小例子The function of good software is to make the complex appear to be simple—Grady Booch程序的控制结构PM2.5空气质量提醒(分支结构)PM = eval(input("please enter ...原创 2019-03-19 09:13:46 · 455 阅读 · 0 评论 -
第二部分 程序的控制结构 - 3
目录组合数据类型基本统计值计算带排除的哈姆雷特英文词频统计三国演义中文人名词频统计Computer are goos at following instructions,but not at reading your mind.— Donald Knuth组合数据类型基本统计值计算from math import sqrtdef getNum(): nums =[] #li...原创 2019-03-22 10:03:59 · 233 阅读 · 0 评论 -
第一部分 初识python语言 - 3
目录基本数据类型天天向上获取星期字符串凯撒密码带刷新的文本进度条There are only two kinds of programming languages:those people always bitch about and those nobody uses.Bjarne Stroustrup基本数据类型天天向上def dayUP(df): dayup = 1.0...原创 2019-03-17 11:27:30 · 454 阅读 · 0 评论 -
第一部分 初识python语言 -2
目录温度转换python 蟒蛇绘制Talk is cheap,Show me the code— Linus Torvalds温度转换#e1.1 TempConvert.pydef tempConvert(ValueStr): if ValueStr[-1] in ['F','f']: C=(eval(ValueStr[0:-1])-32)/1.8 ...原创 2019-03-16 21:06:56 · 306 阅读 · 0 评论 -
第一部分 初识python语言 - 1
目录1. 同心圆绘制2. 日期和时间的输出3.字符串拼接4.整数序列求和5.九九乘法表输出6.计算1+2!+3!+...10!的结果7.猴子吃桃8.健康食谱输出10.五角星绘制太阳花绘制Everybody in this country should learn how to program a computer,because it teaches you how to think.— S...原创 2019-03-16 11:30:39 · 334 阅读 · 0 评论 -
【2018.0313】深度学习积累
Python 基础——range() 与 np.arangeMatlab中plot函数及legend函数详解Spring中常用的注解(@Entity,@Table,@Column,@Repository,@Service)原创 2018-03-13 08:24:19 · 232 阅读 · 0 评论 -
617.Merge Two Binary Trees(合并两棵树)
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. 给定两个二叉树,并想象当你把其中一个覆盖另一个时,两个树的一些节点是重叠的,而另一个没有。Y原创 2017-10-07 21:17:11 · 2651 阅读 · 0 评论 -
hamming distance(汉明距离)
汉明距离题目: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. 两个整数之间的汉明距离是相应位不同的位置数。 Given two integers x and y, calculate the Hamming d原创 2017-10-07 21:00:33 · 1447 阅读 · 0 评论 -
第二部分 程序的控制结构 -2
目录函数和代码复用七段数码管绘制阶乘的计算字符串反转函数和代码复用七段数码管绘制#e7.2DrawSevenSegDisplay.pyimport turtle, datetimedef drawGap(): #绘制数码管间隔 turtle.penup() turtle.fd(5)def drawLine(draw): #绘制单段数码管 drawGap()...原创 2019-03-19 14:20:46 · 298 阅读 · 0 评论