这个函数将显示一个简单的标题,写出数组内容,然后打印一个页脚 — 全部采用纯文本格式。
This function displays a simple header, writes out the content of the array, and then prints a footer—all in plain text.
我只是使用一个全为零的5字节数组作为其内容。
您也许还想在数组的内容里添加一些任意字符串。
You may also want to join the contents of an array with some arbitrary string.
I'm going to print it and let's see what it prints.
我要将其打出来,我想显示下数组的内容。
We can look at it here; we looked at append, which added things to lists, we looked at delete, deleting things from a list.
看看这儿,append方法给数组,增加了一些内容,我们还学习了,如何删除数组中的元素。
Now what do we get if we print l? MIT is gone.
再试试显示数组内容,MIT没了。
应用推荐