2018年11月的全部文章
@kidultff

PAT-A 真题 1016 Phone Bills

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 day when the call is made. When a customer starts connecting a ...
  • 0
  • 0
@kidultff

记一次微信爬虫获取公众号历史文章并导出PDF

技术栈:抓包技术、Python2.7、BeautifulSoup、Requests、PyMuPDF、一些HTTP协议基础。0x00、问题提出想要对某公众号的历史推送的图片进行归档,但是微信没有相关的功能,历史推送数据量还不小,因此决定做一个爬虫。做这个爬虫的思路是,首先得到 ...
  • 0
  • 11
@kidultff

PAT-A 真题 – 1024 Palindromic Number

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 single digit numbers are palindromic numbers.Non-palindromic numbers ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1058 A+B in Hogwarts

If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it's easy enou ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1097 Deduplication on a Linked List

Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only the first node of which the value or absolute value ...
  • 0
  • 0