臭咸鱼的缺氧瓶

快给我氧气!


  • Home

  • Tags

  • Categories

  • Archives

  • Search

VSCode运行Python代码:文件存在但出现FileNotFoundError

Posted on 2020-10-23 | | Visitors:
Words count in article: 225 字 | Reading time ≈ 1 分
今天使用VSCode运行Python代码,读取当前目录下的CSV文件,代码如下 12import pandas as pddata = pd.read_csv('./train.csv') 我已确认过我的Python代码文件和train.csv在同一个目录,正常情况下这份代码不应该报错的。 但我运行 ...
Read more »

(hexo)YAMLException can not read a block mapping entry; a multiline key may not be an implicit key

Posted on 2020-10-19 | | Visitors:
Words count in article: 101 字 | Reading time ≈ 1 分
运行hexo g后,报错如下: 1YAMLException can not read a block mapping entry; a multiline key may not be an implicit key 根据报错定位(一般会定位到文件的某行某列),检查一下是不是哪里少了空格,我的情况 ...
Read more »

PAT甲级1118Birds in Forest

Posted on 2020-10-19 | | Visitors:
Words count in article: 453 字 | Reading time ≈ 2 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805354108403712 题解题目要求 输入 N:正整数,不超过1000,照片的数量 N张照片:每张照片中有K只鸟,鸟的索引从1开始,不超过10000。假设一张图 ...
Read more »

PAT甲级1114Family Property

Posted on 2020-10-19 | | Visitors:
Words count in article: 802 字 | Reading time ≈ 4 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805356599820288 题解题目要求 给出每个人的家庭成员和属于他的房产信息,请计算每个家庭的成员数、房产平均面积、房产数 输入 N:不超过1000,人的数量 ...
Read more »

PAT甲级1107Social Clusters

Posted on 2020-10-18 | | Visitors:
Words count in article: 430 字 | Reading time ≈ 2 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805361586847744 题解题目要求 输入 N:正整数,不超过1000,人的数量,索引为[1,N] N个人的爱好:爱好的索引为[1,1000] 输出 有几个 ...
Read more »

PAT甲级1098Insertion or Heap Sort

Posted on 2020-10-18 | | Visitors:
Words count in article: 649 字 | Reading time ≈ 3 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805368847187968 题解题目要求 给定一个序列,及用某种排序方法经过几次迭代后的结果,请指出用了什么排序方法。(升序) 输入 N:正整数,不超过100,给定 ...
Read more »

PAT甲级1051Pop Sequence

Posted on 2020-10-17 | | Visitors:
Words count in article: 379 字 | Reading time ≈ 2 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805427332562944 题解题目要求 背景 给定一个最大容量为M的栈,随机压入和弹出N个数(从1到N)。请判断一个序列是否有可能是该栈弹出的序列 输入 ...
Read more »

PAT甲级1091Acute Stroke

Posted on 2020-10-16 | | Visitors:
Words count in article: 776 字 | Reading time ≈ 4 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805375457411072 题目要求 输入 M:正整数 N:正整数 L:正整数,不超过60,一个大脑中slice的数量 T:正整数,阈值,如果一个connected ...
Read more »

PAT甲级1076Forwards on Weibo

Posted on 2020-10-10 | | Visitors:
Words count in article: 419 字 | Reading time ≈ 2 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805392092020736 题解题目要求 给定一个社交网络,请计算某用户的最大转发量(只计算L层间接关注者,假设一条微博,每个人只能转发一次)。 输入 N:正整数, ...
Read more »

PAT甲级1131Subway Map

Posted on 2020-10-05 | | Visitors:
Words count in article: 629 字 | Reading time ≈ 3 分
题目链接https://pintia.cn/problem-sets/994805342720868352/problems/994805347523346432 题解题目要求 给定起点和目标地,找到最快的路 输入 N:正整数,不超过100,地铁线路的数量,索引为[1,n] N条地铁线路:M个站 ...
Read more »
1…8910…32
臭咸鱼

臭咸鱼

祝你天天开心啊!

316 posts
182 tags
RSS
Links
  • Road Wide's Blog
  • Chou Xianyu's CNBlog
© 2018 — 2021 臭咸鱼 | Site words total count: 289.4k
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4
本站总访问量 次