import smtplib import os from email.header import Header from email.mime.text import MIMEText # shenyuximr@163.com def sendemail(host,usernames,verify ...
                            
                            
                                分类:
编程语言   时间:
2021-05-24 04:25:15   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    一、遍历文件夹代码如下,大家可以根据自己的路径进行修改import osfor dirpath, dirnames, filenames in os.walk(r'C:\\Program Files (x86)'):print(f'打开文件夹{dirpath}') # 当前文件夹路径 if dirn ...
                            
                            
                                分类:
编程语言   时间:
2021-05-24 02:56:20   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                一、开发环境 OS: Win10 64bit VisualStudio:VS2010 Wireshark:Wireshark-1.8.6 Cygwin:最新版 Python:Python2.7.13 参考链接: https://wenku.baidu.com/view/854c986d011ca30 ...
                            
                            
                                分类:
其他好文   时间:
2021-05-24 02:04:09   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    import easygui import os path = easygui.fileopenbox()#path是打开的文件的全路径 if path:#如果选择打开文件,没有选择取消 b = os.path.splitext(path)#把打开的文件的全路径分割成文件名和后缀名 c = [b[0 ...
                            
                            
                                分类:
其他好文   时间:
2021-05-24 01:31:34   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    一、os模块 os模块负责程序与操作系统的交互,提供了访问操作系统底层的接口,多用于文件处理。 方法详解 os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 os.chdir(“dirname”) 改变当前脚本工作目录;相当于shell下cd os.curdir 返回当前 ...
                            
                            
                                分类:
其他好文   时间:
2021-05-24 00:51:10   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    一、网络结构 二、代码 import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import tensorflow as tf from tensorflow.keras import layers, optimizers, datasets, Sequen ...
                            
                            
                                分类:
其他好文   时间:
2021-05-04 15:53:44   
                                阅读次数:
0