<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[RSS Feed]]></title><description><![CDATA[RSS Feed]]></description><link>https://ecency.com</link><image><url>https://ecency.com/logo512.png</url><title>RSS Feed</title><link>https://ecency.com</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 09:54:44 GMT</lastBuildDate><atom:link href="https://ecency.com/@spearous/rss" rel="self" type="application/rss+xml"/><item><title><![CDATA[python 3 snippets: basic I/O]]></title><description><![CDATA[Intro Here I summarize the basic I/O snippet in python 3, so to be used later. A major difference is raw_input() is removed in python3 and there is some change in print() function as well. input() The]]></description><link>https://ecency.com/@spearous/python-3-snippets-basic-i-o</link><guid isPermaLink="true">https://ecency.com/@spearous/python-3-snippets-basic-i-o</guid><category><![CDATA[python]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 29 Jul 2018 15:38:00 GMT</pubDate></item><item><title><![CDATA[1岁小孩要不要吃全脂牛奶（一）]]></title><description><![CDATA[在网上看了一下，竟然有两种截然相反的看法。国内的主流看法是不要加；国外的主流看法，包括欧美澳，都是1岁开始加。 这个问题，看似表述清晰，但根据网上很多人的理解，还是模糊之处。问题集中在： 1 全脂牛奶有什么好处？国内和国外的看法不同的原因是什么？是有各自的前提，所以结论不同，还是说一方是对的，另一方是错的？ 2 吃全脂牛奶，是不是意味着就要把奶粉断了？ 3 如果有其他食物和全脂牛奶一起吃，那么有什么禁忌？]]></description><link>https://ecency.com/@spearous/1</link><guid isPermaLink="true">https://ecency.com/@spearous/1</guid><category><![CDATA[cn]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Mon, 28 May 2018 19:51:51 GMT</pubDate><enclosure url="https://i.ecency.com/p/26uUsAjKTsXCBRzTxRJWxpz7qLMdK4Nq6Ha3QAmrmWNLCRiHXo2FVFpRMS6KkSSXMs9AEHNRgeS6MRDyKWuBayX3JC3Qu5S9K9Lh81Hcw2H6HM3QKBXMA9rvzGLpRNcPvVcdwtJ4gDG1QutLfnbWWPSEDbWyrbG7x6dKen?format=match&amp;mode=fit" length="0" type="false"/></item><item><title><![CDATA[今天体会了一下 中文写作和英文写作的区别]]></title><description><![CDATA[我想每个人都听过关于中文和英文写作的经典比较：英文是开门见山式，而中文是云里雾绕式；英文结论或者主题直接给你，而中文会小心谨慎的藏起来让你找。我也是听的似懂非懂：中文也有开门见山式的开局，也有直接切入主题的文章，这怎么不一样呢？]]></description><link>https://ecency.com/@spearous/2h46y</link><guid isPermaLink="true">https://ecency.com/@spearous/2h46y</guid><category><![CDATA[writing]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Thu, 15 Feb 2018 05:08:24 GMT</pubDate></item><item><title><![CDATA[python3刷USACO题库 1.2.2 Greedy Gift Givers]]></title><description><![CDATA[这个仍然是基础语言题目。题目内容很简单，大致是一组朋友互相赠红包，每个人可能赠出，也可能收到，经过几轮之后，打印出最终每个人的余额。 对于python3来说，字典这个数据结构，很适合这个问题，所以首先要学一下字典相关的操作。然后是python3和python2关于字典的一个小坑以及文件读取函数的一个小坑， 字典]]></description><link>https://ecency.com/@spearous/python3-usaco-1-2-2-greedy-gift-givers</link><guid isPermaLink="true">https://ecency.com/@spearous/python3-usaco-1-2-2-greedy-gift-givers</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sat, 20 Jan 2018 16:04:24 GMT</pubDate></item><item><title><![CDATA[python3刷USACO题库 1.2.1 Your Ride Is Here]]></title><description><![CDATA[这是第一章的第一部分的第一道题目，所以相对来说，是最简单的题目，或者用网站的话叫"Ad hoc problem"。 大体意思就是地球上有很多飞碟(UFOs)迷的组织。当飞碟发出的信号，和该组织的名字经过某种运算之后，是相等的，那么该组织就会被飞碟带去外星(GO)，否则就不带(STAY)。这种运算即：名称里的字母按照A=1,]]></description><link>https://ecency.com/@spearous/python3-usaco-1-2-1-your-ride-is-here</link><guid isPermaLink="true">https://ecency.com/@spearous/python3-usaco-1-2-1-your-ride-is-here</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Wed, 17 Jan 2018 19:16:33 GMT</pubDate></item><item><title><![CDATA[python3刷USACO题库 Sum the Numbers (map(), list comprehension)]]></title><description><![CDATA[USACO是美国计算机奥林匹克竞赛在线题库，提供了一个从零开始入门的系列题目，分为6个章节，每章节有4-5个部分。每个章节里的题目集中于一种算法的训练。你只有完成了前面的题目，后面的题目才会开放给你。另外，不同于其他OJ，USACO是从文件中读取输入，所以我们在编写代码的时候，要注意从文件中读取数据而不是控制台。同时在提交代码的时候，需要在代码最前面加上 你的ID： /* ID:帐号 PROG:做的题的名字]]></description><link>https://ecency.com/@spearous/python3-usaco-sum-the-numbers-map-list-comprehension</link><guid isPermaLink="true">https://ecency.com/@spearous/python3-usaco-sum-the-numbers-map-list-comprehension</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Wed, 17 Jan 2018 16:28:15 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1012: 外币兑换（求最值，find min and/or max）]]></title><description><![CDATA[这算是第一个涉及一个比较重要的算法的题目。这一类题目会要求你给出一个数组中的最值，即给出最大值或最小值或两个都要求给出。如果延伸一下，还可以求前n个最大值和前n个最小值。因此这是一个很基础的算法。首先看一下理论结果，然后看一下有没有什么python库函数可以直接调用，最后看一下求前n个最值的方法。 理论上讲]]></description><link>https://ecency.com/@spearous/python3-tk-1012-find-min-and-or-max</link><guid isPermaLink="true">https://ecency.com/@spearous/python3-tk-1012-find-min-and-or-max</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Wed, 17 Jan 2018 05:56:39 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1011: 软件版本]]></title><description><![CDATA[这又是多重判断选择问题，算是练一练条件判断的使用吧。python3有几种条件判断格式语句，并且可以嵌套： if statement1: #outer if print("hello world") if nested_statement1: #first nested if print("yes") elif nested_statement2: #first]]></description><link>https://ecency.com/@spearous/python3-tk-1011</link><guid isPermaLink="true">https://ecency.com/@spearous/python3-tk-1011</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Wed, 17 Jan 2018 01:14:21 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1010: 平均绩点]]></title><description><![CDATA[仍然是语言基础问题，这次主要是选择结构的使用。和C/C++不一样的是，python没有switch...case结构，所以遇到多种情况的选择，一般要么用很多if，要么用python特有的数据结构--字典。我的实现使用很多if。如果想要pythonic一点，那肯定是用字典了。当然，也有用python的函数自己实现一个switch...case结构的。 1010: 平均绩点 时间限制: 1 Sec 内存限制:]]></description><link>https://ecency.com/@spearous/python3-tk-1010</link><guid isPermaLink="true">https://ecency.com/@spearous/python3-tk-1010</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Tue, 16 Jan 2018 14:15:12 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1009: 财务管理]]></title><description><![CDATA[这道主要是输出的格式问题。在python3，有两种模式可选， print("￥%.2f" % average) print("￥{:.2f}".format(average)) 使用format来表达字符串是最新的方式，它有前一种无法实现的灵活性，如： 命令: print('{1} {0}'.format('one', 'two')) 相应输出: two one]]></description><link>https://ecency.com/@spearous/python3-tk-1009</link><guid isPermaLink="true">https://ecency.com/@spearous/python3-tk-1009</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Tue, 16 Jan 2018 04:11:18 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1008: ASCII码 (python3读取多行输入，python3在同一行输出)]]></title><description><![CDATA[这个题目本身好像是有问题的。我按照它的描述编程，结果一直不过。后来在网上找了别人通过的C和C++代码，发现能通过的输出其实是另一种不同的格式。于是，我又把我的python3程序按照这个新的输出格式写，结果就通过了。这说明题目自己的描述是有问题的！ 不过，为了通过这个题目，我学了不少python3的输入和输出控制，也算是有不小的收获。 python3 如何读取多行输入？]]></description><link>https://ecency.com/@spearous/tk-1008-ascii-python3-python3</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1008-ascii-python3-python3</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Mon, 15 Jan 2018 22:57:15 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1006: A+B 输入输出练习VII]]></title><description><![CDATA[这个输入输出和前面的一个题目差不多，就是输出多了一行空行。所以改一下代码即可。 1006: A+B 输入输出练习VII 时间限制: 1 Sec 内存限制: 32 MB 提交: 4357 解决: 2775 [提交][状态][讨论版][命题人:外部导入][下载1元][20kb] 题目描述 你的任务是计算两个整数的和。 输入 输入包含若干行，每行输入两个整数a和b，由空格分隔。 输出]]></description><link>https://ecency.com/@spearous/tk-1006-a-b-vii</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1006-a-b-vii</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 21:04:06 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1005: A+B 输入输出练习VI]]></title><description><![CDATA[看题目适合1003重复了。。。这个我就用1003的程序也过了。。。 1005: A+B 输入输出练习VI 时间限制: 1 Sec 内存限制: 32 MB 提交: 6597 解决: 3777 [提交][状态][讨论版][命题人:外部导入][下载1元][32kb] 题目描述 你的任务是计算若干整数的和。 输入 每行的第一个数N，表示本行后面有N个数。 输出 对于每一行数据需要在相应的行输出和。 样例输入]]></description><link>https://ecency.com/@spearous/tk-1005-a-b-vi</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1005-a-b-vi</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 20:02:18 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1004: A+B 输入输出练习V]]></title><description><![CDATA[实际上，这个是前几个输入输出问题的合并。所以只要改一下代码即可。 1004: A+B 输入输出练习V 时间限制: 1 Sec 内存限制: 32 MB 提交: 5469 解决: 3620 [提交][状态][讨论版][命题人:外部导入][下载1元][32kb] 题目描述 你的任务是计算若干整数的和。 输入 输入的第一行是一个正数N，表示后面有N行。每一行的第一个数是M，表示本行后面还有M个数。 输出]]></description><link>https://ecency.com/@spearous/tk-1004-a-b-v</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1004-a-b-v</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 19:32:15 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1003: A+B 输入输出练习IV]]></title><description><![CDATA[这算是第四个用input的题目了，这里有个小技巧，就是用split()函数把一行输入的若干个数，按照给定的分隔符（默认为空格，制表符和换行键），分别存进不同的变量里。而这些变量可以用数组来组织，调用的时候用: a=line.split()[b] 即把第b个数（从零开始计算）存进a里。 当然也可以指定分隔符，如用"-"： a=line.split('-')[b] 这次的输入输出题目在：]]></description><link>https://ecency.com/@spearous/tk-1003-a-b-iv</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1003-a-b-iv</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 19:21:27 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1002: A+B 输入输出练习III]]></title><description><![CDATA[第三个输入输出， 1002: A+B 输入输出练习III 时间限制: 1 Sec 内存限制: 32 MB 提交: 7505 解决: 4943 [提交][状态][讨论版][命题人:外部导入][下载1元][20kb] 题目描述 你的任务是计算a+b。 输入 输入中每行是一对a和b。其中会有一对是0和0标志着输入结束，且这一对不要计算。 输出 对于输入的每对a和b，你需要在相应的行输出a、b的和。]]></description><link>https://ecency.com/@spearous/tk-1001-a-b-iii</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1001-a-b-iii</guid><category><![CDATA[cn]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 18:28:18 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1001: A+B 输入输出练习II]]></title><description><![CDATA[这个是另一个基本求和问题。我觉得这个题目描述就很清晰。所以，也很简单的AC了。 1001: A+B 输入输出练习II 时间限制: 1 Sec 内存限制: 32 MB 提交: 9560 解决: 5632 [提交][状态][讨论版][命题人:外部导入][下载1元][20kb] 题目描述 你的任务是计算a+b。 输入 第一行是一个整数N，表示后面会有N行a和b，通过空格隔开。 输出]]></description><link>https://ecency.com/@spearous/tk-1001-a-b-ii</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1001-a-b-ii</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 18:06:54 GMT</pubDate></item><item><title><![CDATA[python3刷TK题库 1000: A+B 输入输出练习I (初次接触input())]]></title><description><![CDATA[这是一道练输入输出的题目。我其实觉得出得不是很明确。如果你看它的输入和输出示范，看起来是一下输入几行，然后一起输出结果。而实际要求是，你给一行输入，就输出这一行结果。后来没通过。我又仔细一看，原来。。。唉，这些细节没做好，所以提交了好几次都没过，哈哈。]]></description><link>https://ecency.com/@spearous/tk-1000-a-b-i</link><guid isPermaLink="true">https://ecency.com/@spearous/tk-1000-a-b-i</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 17:37:45 GMT</pubDate></item><item><title><![CDATA[开始练习ACM！]]></title><description><![CDATA[最近感觉编程技巧很重要，于是想着开始练ACM吧。以前断断续续练过一阵，几乎都忘光了。这次不一样的地方在于，一般ACM都会用C或者C，因为速度快，而python等语言比较慢，虽然在提交的时候，会在时间和空间上有相应的宽限，但一般比较少。所以算下来，还是C/C比较划算。可是，我新学python，所以这次打算用python来练习，反正也不是参加比赛，自己享受一下解题过程而已~ 著名的OJ，即online]]></description><link>https://ecency.com/@spearous/acm</link><guid isPermaLink="true">https://ecency.com/@spearous/acm</guid><category><![CDATA[acm]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Sun, 14 Jan 2018 16:36:03 GMT</pubDate></item><item><title><![CDATA[What I learnt from my baby]]></title><description><![CDATA[It's interesting to observe how my baby is learning from this world and vice versa. Around 1 month, if i showed her some finger gestures, say a V sign, she would try to repeat it with the correct side]]></description><link>https://ecency.com/@spearous/what-i-learnt-from-my-baby</link><guid isPermaLink="true">https://ecency.com/@spearous/what-i-learnt-from-my-baby</guid><category><![CDATA[education]]></category><dc:creator><![CDATA[spearous]]></dc:creator><pubDate>Thu, 16 Nov 2017 17:10:06 GMT</pubDate></item></channel></rss>