摘要:        
import xlwtdef txt_xls(filename, xlsname): try: f = open(filename) xls = xlwt.Workbook() # 生成excel的方法,声明excel sheet = xls.add_sheet('sheet', cell_over    阅读全文
posted @ 2021-08-13 16:58
编程大白77
阅读(520)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1 def txt_xls(filename, xlsname): 2 try: 3 f = open(filename) 4 xls = xlwt.Workbook() 5 # 生成excel的方法,声明excel 6 sheet = xls.add_sheet('sheet', cell_ove    阅读全文
posted @ 2021-08-13 16:49
编程大白77
阅读(132)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1、将内容写入txt文件 1 def txt(cont, path): 2 for i in cont: 3 with open(path, "a") as f: 4 # s = str(item[i]).replace('[', '').replace(']', '') + '\n' # i为列表    阅读全文
posted @ 2021-08-13 16:46
编程大白77
阅读(601)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号