dicts = {'abc': '2', 'def': '3', 'ghi': '4', 'jkl': '5', 'mno': '6', 'pqrs': '7', 'tuv': '8', 'wxyz': '9'} word = input("输入单词\n").lower() num = '' for i in range(len(word)):     for key, value in dicts.items():         if word[i] in key:             num = num + value print(num)

相关推荐

LastWh1spe...:ssob真有些人和那个没睡醒一样
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务