图3显示了该调查的答案列表。
接着该调查ID会被发送至build_answers以输出当前的答案集。
That poll ID is then sent to build_answers to output the current set of answers.
为了简单起见,首先创建一个名为build_answers的helper函数,当给定一个数据库句柄或调查ID后,该函数会输出该调查所有答案的XML(参见清单4)。
To make it easier on yourself, first create a helper function called build_answers that, when given a database handle and a poll ID, outputs the XML for all the answers to that poll (see Listing 4).
为了简单起见,首先创建一个名为build_answers的helper函数,当给定一个数据库句柄或调查ID后,该函数会输出该调查所有答案的XML(参见清单4)。
To make it easier on yourself, first create a helper function called build_answers that, when given a database handle and a poll ID, outputs the XML for all the answers to that poll (see Listing 4).
应用推荐