不管对于read_csv还是read_excel,现在都有: usecols : int or list, default None If None then parse all columns, If int then indicates last column to be parsed If list of ints then indicates list of column numbers to be parsed If string then indicates comma separa
原创:如何实现在Excel通过循环语句设置指定行的格式 一.需求: 想让excel的某些行(比如3的倍数的行)字体变成5号字 如何整: 二.实现: Sub code() To Range("A65536").End(xlUp).Row Rows( * i & * i).Select Selection.Font.Size = '将5更改为你需要的字号大小即可 Selection.Font.Bold = True Next i End Sub 三.示例: 加入QQ群,在群共享中可