摘要: 本文笔记由 "Python入门" 和 "Python进阶" 两门课程整理而来 列表 List 1. 3. 倒序访问 [ 1]下标访问倒数第一个元素 [0]下标访问正数第一个元素 4. 切片 同样适用于元组 5. 倒序切片 6. 列表生成式 7. 列表生成式+if判断 8. 多层表达式 元组 Tupl 阅读全文
posted @ 2017-03-24 21:25 NhdVW0V 阅读(133) 评论(0) 推荐(0)
摘要: 1062. Talent and Virtue (25) About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and v 阅读全文
posted @ 2017-03-24 15:07 NhdVW0V 阅读(156) 评论(0) 推荐(0)
摘要: 1100. Mars Numbers (20) People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earch is calle 阅读全文
posted @ 2017-03-24 15:00 NhdVW0V 阅读(153) 评论(0) 推荐(0)
摘要: 1073. Scientific Notation (20) Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation mat 阅读全文
posted @ 2017-03-24 14:48 NhdVW0V 阅读(148) 评论(0) 推荐(0)
摘要: 1070. Mooncake (25) Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be 阅读全文
posted @ 2017-03-24 14:47 NhdVW0V 阅读(159) 评论(0) 推荐(0)
摘要: 1069. The Black Hole of Numbers (20) For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasi 阅读全文
posted @ 2017-03-24 14:45 NhdVW0V 阅读(355) 评论(0) 推荐(0)
摘要: 1058. A+B in Hogwarts (20) If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it t 阅读全文
posted @ 2017-03-24 14:30 NhdVW0V 阅读(212) 评论(0) 推荐(0)
摘要: 1084. Broken Keyboard (20) On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those 阅读全文
posted @ 2017-03-24 14:19 NhdVW0V 阅读(144) 评论(0) 推荐(0)