题目内容

已知变量n为含有6个元素的一维数组,以下哪条语句可将其重塑为3行2列的二维数组,且不改变各元素的数据内容:________

A. n.reshape(3,2)
B. n.reshape(2,3)
C. n.arrange(3,2)
D. n.arrange(2,3)

查看答案
更多问题

有两个numpy数组 X,Y,将 X 放在 Y 的左边的合成方法是:________

A. numpy.vstack(X , Y)
B. numpy.vstack(Y, X)
C. numpy.hstack(X , Y)
D. numpy.hstack(Y, X)

从A到B有三条公路可走,假定节假日车流密集,在某高峰时段,每条路通畅的概率分别为0.7、0.6、0.5,求该时段内:(1)从A到B完全不通的概率;(2)从A到B至少有两条路通畅的概率

短文翻译:Most of us have too many things to do in our life. Since time cannot be created, we need to make choices and make a plan. Planning is the key to relieving the stress of too little time. Plans can be made for long-term or short-term goals. Start by making daily plans. A daily plan involves two things. First, list the things you must do today, and then write down the things. Most of your time should be spent on these things.

短文翻译:The customers' sense of satisfaction in a restaurant is, in most cases,determined by its waiters' service. If you are a waiter, your primary responsibility is to ensure that all your customers are happy and their needs are met. So you must be ready to respond to a variety of demands from your customers. However, your most important duty is to ensure that you accurately take your customer's order, so he receives the dish exactly the way he likes.

答案查题题库