步骤 step1 打开数据表 step2 创建ID列,右键该列进入字段计算器 结果 step1 打开数据表 step2 创建ID列,右键该列进入字段计算器 i = 0 def unid(): global i i = i +1 return "{0:04d}".format(i)