编写一组函数实现位数组。共4个函数,set,clear,assign,test