请将香蕉banana 用工具 H( )-Head( )、T()-Tail()从L中取出。 L=(apple, (orange, (strawberry, (banana)),peach), pear)
时间: 2024-05-23 10:15:11 浏览: 201
Sure, to extract the banana from the list L using H()-Head and T()-Tail, you can do the following:
T(H(T(H(T(L)))))) # This will return 'banana'
阅读全文