第一册:lesson sixty five.

原文: Not a baby.

A:What are you going to do this evening Jill?

B:I'm going to meet some friends, dad.

A:You mustn't come home late. You must be home at half past ten.

A:I can't get home so early dad. Can I have the key to the front door,please?

B:No you can't.

C: Jill is eighteen years old Tom . She is not a baby. Give her the key. She always comes home early.

A:Oh,right,here you are. But you mustn't come home after  a quarter past eleven   .Do you here?

B:Yes,dad. Thanks mum.

C:That's all right. Good bye .Enjoy you self.

B:We always enjoy ourselves mum  bye. 

------------------------------------------------------------------------------------------

单词:

quarter:一刻钟  

the key to ..什么的钥匙    the key to car   the key to the question

转载于:https://www.cnblogs.com/zhangyuhao/p/10564520.html

好的,根据你的要求,我可以帮你写出一个Python方法,如下所示: ```python def num2words(num): units = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'] tens = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'] groups = ['', 'thousand', 'million', 'billion'] # add commas to separate groups of digits num_str = str(num) num_str = num_str[::-1] num_str = ','.join([num_str[i:i+3] for i in range(0, len(num_str), 3)]) num_str = num_str[::-1] # split the comma-separated groups into a list num_list = num_str.split(',') # convert each group into English words words_list = [] for i, group in enumerate(num_list): group_int = int(group) if group_int == 0: continue # convert hundreds place to words if len(group) == 3: words_list.append(units[group_int//100] + ' hundred') group_int %= 100 if group_int == 0: continue # convert tens and ones place to words if group_int < 20: words_list.append(units[group_int]) else: words_list.append(tens[group_int//10]) if group_int % 10 != 0: words_list.append(units[group_int % 10]) # add appropriate group name (thousand/million/billion) if i != 0: words_list.append(groups[i]) # join the words together with 'and' as appropriate words = '' for i, word in enumerate(words_list): if i == 0: words += word elif i == len(words_list)-1: if word != 'hundred': words += ' and ' + word else: words += ' ' + word else: words += ' ' + word + ' ' return words ``` 可以这样使用这个方法: ```python print(num2words(22)) # twenty two print(num2words(100)) # one hundred print(num2words(145)) # one hundred and forty five print(num2words(1234)) # one thousand two hundred and thirty four print(num2words(8088)) # eight thousand eighty eight print(num2words(486669)) # four hundred and eighty six thousand six hundred and sixty nine print(num2words(1652510)) # one million six hundred and fifty two thousand five hundred and ten ``` 上面这段代码输出的结果与你提供的例子相对应。希望对你有所帮助!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值