自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 python 用pandas进行csv文件读取

还是pandas读取CSV文件最方便啦!这里简要介绍read_csv函数,就罗列了几个我看到有用的参数,如果看到新的会更新其实就是翻译了一下官网,如有错误请各位大佬指正:详细介绍官网网址:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.htmlpandas.read_csv(filepath_or_buffer: Union[str, pathlib.Path, IO[~AnySt.

2020-05-16 18:06:09 686

转载 关于隐含狄利克雷分布(Latent Dirichlet Allocation,简称LDA)的笔记

LDA由Blei, David M.、Ng, Andrew Y.、Jordan于2003年提出,是一种主题模型,它可以将文档集 中每篇文档的主题以概率分布的形式给出,从而通过分析一些文档抽取出它们的主题(分布)出来后,便可以根据主题(分布)进行主题聚类或文本分类。同时,它是一种典型的词袋模型,即一篇文档是由一组词构成,词与词之间没有先后顺序的关系。此外,一篇文档可以包含多个主题,文档中每一个词都由...

2019-09-23 19:54:00 793

转载 vs 常用快捷键

1: Ctrl + Enter (在光标指定位置的上面添加一行,并将光标移至新添加行的行首位置)  Ctrl + Shift + Enter (在光标指定位置的下面添加一行,并将光标移至新添加行的行首位置)2: Ctrl + Shift + L (删除当前行)3: Ctrl + M + O (折叠所有的函数)  Ctrl + M + P (展开所有的函数)4

2015-12-06 21:31:10 397

原创 深搜——n皇后问题

深搜——n皇后问题Description在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。   Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。 

2015-08-12 14:33:35 741

原创 poj 1007 DNA Sorting

DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this m

2015-08-08 08:57:40 376

原创 uva 10340-all in all

题意:判断a串是不是b串的子串。思路:用两根指针分别追踪a,b串。#include #include #include #include #include using namespace std;int main(){ string s,t;; int flag; while(cin>>s>>t) { int flag=0;

2015-08-08 08:38:56 315

原创 UVA 10905 Children's Game

There are lots of number games forchildren. These games are pretty easy to play but not so easy tomake. We will discuss about an interesting game here. Each playerwill be givenN positive integer. (S

2015-08-08 08:13:49 213

原创 UVALive 3708 Graveyard

DescriptionProgramming contests became so popular in the year 2397 that the governor of New Earck -- the largest human-inhabited planet of the galaxy -- opened a special Alley of Contestant Memori

2015-08-03 09:09:10 307

原创 CodeForces 2A

The winner of the card game popular in Berland "Berlogging" is determined according to the following rules. If at the end of the game there is only one player with the maximum number of points, he is

2015-08-03 08:59:14 412

原创 UVA 11729 Commando War

#include #include #include #include #include using namespace std;struct Job{ int b, j;}job[1010];bool cmp(Job a, Job b){ if(a.j > b.j) return 1; else return 0;

2015-08-03 08:46:46 363

原创 poj 1003 Hangover

HangoverTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 108979 Accepted: 53117DescriptionHow far can you make a stack of cards overhang a table? If you

2015-06-24 21:16:15 407 1

原创 poj 1004 Financial Management

Financial ManagementTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 164764 Accepted: 61188DescriptionLarry graduated this year and finally has a job. He's

2015-06-24 21:10:11 257

原创 HDU 1020 at Sun

I - OTime Limit:1000MS    Memory Limit:32768KB    64bit IO Format:%I64d & %I64uDescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method:1. E

2015-05-10 12:48:02 284

原创 [HDU1002] A + B Problem II

A + B Problem IITime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 252226    Accepted Submission(s): 48598Problem DescriptionI have a v

2015-05-04 20:27:21 360

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除