摘要: a = 'kdjflsjdflsnc,nkdooooooo' print(a.count('o') //自己傻了,哈哈 >>> count = 0>>> word = "dkfjlskdjfaaaaa">>> for letter in word: if letter == "a": count = 阅读全文
posted @ 2018-03-20 14:52 solitude_26 阅读(137) 评论(0) 推荐(0)
摘要: 6.5 Write code using find() and string slicing (see section 6.10) to extract the number at the end of the line below. Convert the extracted value to a 阅读全文
posted @ 2018-03-20 13:27 solitude_26 阅读(150) 评论(0) 推荐(0)