尝试使用字符串格式化函数将其显示为6位数,例如: ``` df['code'] = df['code'].apply(lambda x: '{:06d}'.format(x)) ``` 这将把每个数值转换为6位字符串,前面用0填充。