- 博客(29)
- 收藏
- 关注
原创 Python 雷达图 函数封装 与 使用
RadarMap雷达图文章目录RadarMap雷达图BackgroundUsage函数封装函数使用Background雷达图是以从同一点开始的轴上表示的三个或更多个定量变量的二维图表的形式显示多变量数据的图形方法。轴的相对位置和角度通常是无信息的。 雷达图也称为网络图,蜘蛛图,星图,蜘蛛网图,不规则多边形,极坐标图或Kiviat图。它相当于平行坐标图,轴径向排列。如:Usage函数封装def radarMap(values, feature, labels, title):"""in
2021-01-22 11:00:06
632
1
原创 Python3.6及以上 新特性 f-string的使用 格式化输出
Python 格式化输出之f-string的使用文章目录Python 格式化输出之f-string的使用Backgroundf-string之前字符串拼接格式化输出f-stringBackground字符串是各类编程语言中都很重要的一种变量类型,而且在实际开发中,字符串多与各类变量相互交互、共同作用,常见的有字符串拼接,格式化输出等手段,但是这两种手段都略显笨拙,于是,在Python3.6及更高版本中,Python引进了格式化输出的新手段–“f-string”,使得字符串与其他变量的交互融合变得更加
2021-01-22 10:41:26
422
原创 Python 中文输出乱码 类型与解决方案
Python 中文乱码 类型与解决方案文章目录Python 中文乱码 类型与解决方案BackgroundTypes and solutionsTypesSolutionsBackgroundPython是一种解释型脚本语言,可以应用于以下领域:Web 和 Internet开发科学计算和统计人工智能桌面界面开发软件开发后端开发网络爬虫深受教学从业者和开发者喜爱,近几年随着爬虫、人工智能和大数据的热潮兴起,国内的Python用户也越来越多。但是中文开发者经常遇到的一个问题就是Pyt
2021-01-21 10:28:59
899
原创 Mermaid:如何在Markdown文本中添加流程图,附支持github的方法
Mermaid:流程图 in Markdown文章目录Mermaid:流程图 in MarkdownBackgroundIntroductionMermaid是什么?为什么是Mermaid?UsageMermaid代码如何撰写基本格式例子在前指定流程图方向定义框体定义连接线和子图如何在Github的md文档里支持mermaid?Background我们在写博客或者写项目的README文档的时候,往往都需要画流程图,有的时候用在线编辑器,有的时候用draw.io,有的时候用Visio但是这些可视化
2021-01-02 16:45:46
2039
1
原创 Tqdm:给你的python代码运行加上进度条吧!附单行显示方法
文章目录tqdm安装使用与单行显示1、什么是tqdm2、如何安装3、为什么要用tqdm?4、如何正确使用tqdmtqdm安装使用与单行显示我们在github上找到大神写好的demo准备试一试、跑一跑的时候,会发现在进行下载或者迭代的时候都有可视化的进度条,让我们对总的迭代时间和当前进度有直观的了解,并不用不断地输出进度信息,看起来就很大佬且优雅,那我们是不是也可以办到这点呢?1、什么是tqdmTqdm 是一个快速,可扩展的Python进度条,可以在 Python 长循环中添加一个进度提示信息,用户
2020-08-03 10:03:32
3841
6
原创 CS231N 之 作业环境搭建 (Anaconda Install on Ubuntu)
CS231N 之 作业环境搭建Table (目录):1.下载安装Anaconda2.配置虚拟环境3.在虚拟环境中安装依赖4.使用jupyter开始编辑作业1.下载安装Anaconda下载.sh文件 (请选择对应版本进行下载)清华大学开源软件镜像站下载官网下载打开terminal,打开下载文件的位置:cd Downloads/运行 .sh 文件:bash Anaconda3-5.2.0-Linux-x86_64.sh进入注册信息页面,输入yes确
2020-06-20 12:53:52
691
原创 每日三道算法题-|Day15 of PAT--|1019 General Palindromic Number (20point(s))--|进制转换
1019 General Palindromic Number (20point(s))A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All...
2020-03-09 23:06:29
103
原创 每日三道算法题-|Day15 of PAT--|1018 Public Bike Management ---|Djisktra(迪杰斯特拉算法)--|DFS 遍历 详解!
1018 Public Bike Management (30point(s))There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station an...
2020-03-09 22:44:24
728
原创 每日两道算法题-|Day14 of PAT--|1017 Queueing at Bank (25point(s))--|结构体排序--|运算符重载 详解
1017 Queueing at Bank (25point(s))Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have t...
2020-03-09 16:21:49
145
原创 每日两道算法题-|Day14 of PAT----|1016 Phone Bills (25point(s))--|结构体排序以及Map映射使用--|详解
1016 Phone Bills (25point(s))A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of da...
2020-03-09 15:08:43
170
原创 每日两道算法题 Day13 of PAT---|1014 Waiting in Line (30分)---|跳坑、理思路必看---|队列相关
1014 Waiting in Line (30分)Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to w...
2020-03-03 20:56:38
183
原创 每日两道算法题 Day13 of PAT 1015 Reversible Primes (20分)
1015 Reversible Primes (20分)A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime becaus...
2020-03-03 19:49:16
119
原创 c++ 判断质数 函数
质数又称素数。一个大于1的自然数,除了1和它自身外,不能被其他自然数整除的数叫做质数;否则称为合数。Attention!!!:1不是质数也不是合数2是质数如果一个数含有除去一和自身以外的因子,由于该数为两个因子之积,即num=x*y,因为对称性,x或者y的范围只需考虑从2~k(k2=num)即可,那么该因子最大不超过该数的1/2次方,即<=sqrt(num),故有代码如下:...
2020-03-03 18:34:09
8745
原创 每日一道算法题 Day12 of PAT 1013 Battle Over Cities (25分) 详解
Attention:Details:Code:*****Summary and harvest(for my current level)**********************
2020-03-02 22:22:15
196
原创 每日一道算法题 Day11 of PAT 1012 The Best Rank (25分) 详解
1012 The Best Rank (25分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Lin...
2020-02-26 01:43:16
325
1
原创 细说 类/结构体+vector+find()/find_if() 实现自定义查询 C++ STL
写在之前:众所周知,vector是STL中很好用的一个类,我们可以通过vector实现很多操作,今天就来说一说利用vector如何实现查询操作回顾一下------》基础数据类型查询:find()一般的,对于c++内置的基础数据类型,我们可以直接通过 find() 函数( #include < algorithm >)来进行查询.函数原型:返回值:vector迭代器 ...
2020-02-26 01:10:31
3637
原创 每日一道算法题 Day10 of PAT C++ 1011 World Cup Betting (20分)
1011 World Cup Betting (20分)With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World C...
2020-02-24 22:29:33
251
原创 每日一道算法题 Day9 of PAT 1010 Radix (25分) 详解!!! 带你避坑!!!!
1010 Radix (25分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number.Now for any pair...
2020-02-24 11:10:33
306
1
原创 c++ 数制转换 任意进制转十进制 十进制转任意进制 详解!!! c++自带函数与自行实现函数
自带函数1、任意进制转十进制long int strtol(const char *nptr,char **endptr,int base);strtol函数会将参数nptr字符串根据参数base来转换成长整型数,参数base范围从2至36使用:char* s=“1011”;cout<<strtol(s,NULL,2);输出:11注意:该函数输出的值为非法...
2020-02-24 02:27:27
2979
原创 每日一道算法题 Day8 of PAT 1009 Product of Polynomials (25分)
1009 Product of Polynomials (25分)This time, you are supposed to find A×B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, an...
2020-02-22 23:15:50
346
原创 每日一道算法题 Day7 of PAT 1008 Elevator (20分)
1008 Elevator (20分)The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified o...
2020-02-22 22:42:43
147
原创 每日一道算法题 Day6 of PAT 1007 Maximum Subsequence Sum (25分)
1007 Maximum Subsequence Sum (25分)Given a sequence of K integers { N1 , N2 , …, NK }. A continuous subsequence is defined to be { Ni , Ni+1 , …, Nj } where 1≤i≤j≤K. The Maximum Sub...
2020-02-21 00:02:54
136
原创 每日一(+1)道算法题 Day5 of PAT 1006 Sign In and Sign Out (25分)
1006 Sign In and Sign Out (25分)At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the record...
2020-02-19 21:10:18
191
原创 每日算法题 Day5 of PAT 1005 Spell It Right (20分)
1005 Spell It Right (20分)Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file con...
2020-02-19 20:45:27
158
原创 每日一题 Day4 of PAT 1004 Counting Leaves (30分)
1004 Counting Leaves (30分)A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one te...
2020-02-19 11:31:44
114
原创 Dev C++的安装配置 外观 Debug设置 常用快捷键速览 初学 算法竞赛刷题神器!!!!
Dev C++Dev-C++是一个Windows环境下的一个适合于初学者使用的轻量级 C/C++ 集成开发环境(IDE)。它是一款自由软件,遵守GPL许可协议分发源代码。它集合了MinGW中的GCC编译器、GDB调试器和 AStyle格式整理器等众多自由软件。原开发公司 Bloodshed 在开发完 4.9.9.2 后停止开发,所以现在由 Orwell 公司继续更新开发,最新版本:5.11。...
2020-02-18 22:48:10
1017
原创 每日一题 Day3 of PAT 1003 Emergency (25分)
PAT 1003 Emergency (25分)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue tea...
2020-02-17 01:01:05
209
原创 PAT 1002 A+B for Polynomials
PAT 1002 A+B for Polynomials (25分)This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, a...
2020-02-16 15:42:09
169
原创 PAT刷题第一天 1001 A+B Format (20分)
PAT 1001 A+B Format (20分)Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Spe...
2020-02-15 22:05:07
99
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人