摘要: pyschools Topic 2: Question 9 题目:给定一组整数,获取其个位数之和Write a function getSumOfLastDigits() that takes in a list of positive numbers and returns the sum of all the last digits in the list.def getSumOfLastD... 阅读全文
posted @ 2020-08-04 15:30 九命猫幺 阅读(1060) 评论(2) 推荐(0) 编辑
摘要: pyschools Topic 8: Question 7的题目:给定一个单词,输出字母及字母出现次数Write a function countLetters(word) that takes in a word as argument and returns a dictionary that counts the number of times each letter appears.pyt... 阅读全文
posted @ 2020-08-04 15:16 九命猫幺 阅读(2918) 评论(0) 推荐(0) 编辑