📜  python 从列表中删除 n 个随机元素 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:15.586000             🧑  作者: Mango

代码示例2
“My dear Agnes,—About the cats, you know. Of course I didn't leave them lying flat on the ground like dried flowers: no, I picked them up, and I was as kind as I could be to them. I lent them the portfolio for a bed—they wouldn't have been comfortable in a real bed, you know: they were too thin—but they were quite happy between the sheets of blotting-paper—and each of them had a pen-wiper for a pillow. Well, then I went to bed: but first I lent them the three dinner-bells, to ring if they wanted anything in the night.

You know I have three dinner-bells—the first (which is the largest) is rung when dinner is nearly ready; the second (which is rather larger) is rung when it is quite ready; and the third (which is as large as the other two put together) is rung all the time I am at dinner. Well, I told them they might ring if they happened to want anything—and, as they rang all the bells all night, I suppose they did want something or other, only I was too sleepy to attend them

“In the morning I gave them some rat-tail jelly and buttered mice for breakfast, and they were as discontented as they could be. They wanted some boiled pelican, but of course I knew it wouldn't be good for them. So all I said was "Go to Number Two, Finborough Road, and ask for Agnes Hughes, and if it's really good for you, she'll give you some." Then I shook hands with them all, and wished them all ”

“goodbye, and drove them up the chimney. They seemed very sorry to go, and they took the bells and the portfolio with them. I didn't find this out till after they had gone, and then I was sorry too, and wished for them back again. What do I mean by "them"? Never mind.

How are Arthur, and Amy, and Emily? Do they still go up and down Finborough Road, and teach the cats to be kind to mice? I'm very fond of all the cats in Finborough Road.

Give them my love.
Who do I mean by "them"?
Never mind.

Your affectionate friend,

Lewis Carroll.”