摘要: 在string1之后继续推出string2:View Code 1 # -*- coding: cp936 -*- 2 # D. verbing 3 # Given a string, if its length is at least 3, 4 # add 'ing' to its end. 5 # Unless it already ends in 'ing', in which case 6 # add 'ly' instead. 7 # If the string length is less than 3, leave it uncha 阅读全文
posted @ 2013-03-30 12:12 Emma437211 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 这是google python课程里的练习题一——string 1,通过这几个小程序的实现,足以窥一斑而知全豹,发现python的美。题目及代码如下:# A. donuts# Given an int count of a number of donuts, return a string# of the form 'Number of donuts: <count>', where <count> is the number# passed in. However, if the count is 10 or more, then use the wo 阅读全文
posted @ 2013-03-29 17:41 Emma437211 阅读(381) 评论(0) 推荐(0) 编辑