摘要:        
实战01(根据当前时间创建文件) import timedef create(): global name localTime = time.strftime("%Y%m%d%H%M%S", time.localtime()) name = localTime + '.txt' with open(    阅读全文
        
            posted @ 2022-11-09 23:39
Sharonsss
阅读(66)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
实例01(创建并打开记录蚂蚁庄园的文件)1 print("\n","="*10,"蚂蚁庄园动态","="*10) 2 file = open('message.tex','w') 3 print("\n 即将显示...........\n") 实例02(向蚂蚁庄园的动态文件写入一条信息)1 prin    阅读全文
        
            posted @ 2022-11-09 23:26
Sharonsss
阅读(64)
评论(0)
推荐(0)
        
        
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号