摘要: ## 1、正常算法```if x < y: smaller = xelse: smaller = yprint (smaller) ``` ## 2、三元表达式```smaller = x if x<y else yprint (smaller)```##3、短路求值```smaller = x < y and x or yprint (smaller)```来自为知笔记(Wi... 阅读全文
posted @ 2016-11-01 23:44 StellariLee 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一直想开个程序博客,觉得博客园氛围挺好,但是每次登陆网页版并不是很适应。于是找到了为知笔记来代劳。 为知笔记API地址:http://www.cnblogs.com/<您的用户名>/services/metaweblog.aspx 阅读全文
posted @ 2016-11-01 23:34 StellariLee 阅读(192) 评论(0) 推荐(0) 编辑