df = pandas.DataFrame(dataframe).astype("str")
// 将整个列表字典转为DataFrame时,直接对整个DataFrame设置格式
import pandas as pd
df = pd.DataFrame([12345678901111111111, 123454678911111111])
df.to_excel("D:/a.xlsx")
df.iloc[:, 0] = df.iloc[:, 0].astype("str")
df.to_excel("D:/b.xlsx")
// 单个单元格格式设置
df[0]=df[0].apply(str, axis=1) # axis=1 表示按列