我正在使用 win32com 编写从数据库接收到的一些日期,我的问题是我的值类似于“01”,而在 Excel 中只是“1”而不是“01”。例子:
b = row[1] # b has the value 01
c = "-"+b+"-" # c has value -01-
sheet.Cells(1,1).Value = b # I have in Excel '1' ; I've try with str(b), c - but is the same
我该如何解决这个问题,以便在 Excel 中将该值识别为字符串,在这种情况下为 01?
谢谢。