摘要:        
一、urllib模块 python标准库自带的发送网络请求的模块。 # 用python怎么打开浏览器,发送接口请求 import urllib from urllib.request import urlopen from urllib.parse import urlencode # url="h    阅读全文
posted @ 2019-02-18 22:42
Balllyh
阅读(1624)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一、time模块 import time print(time.strftime('%Y-%m-%d %H:%M:%S'))#获取当前的格式化时间,time.strftime(format) print(time.time())#获取当前的时间戳 #第一种:将格式化的时间转换成时间戳 #思路:先将格    阅读全文
posted @ 2019-02-18 16:21
Balllyh
阅读(338)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一、os模块 os模块是Python标准库中提供的与操作系统交互的模块,提供了访问操作系统底层的接口,里面有很多操作系统的函数 1、os常用方法 import os # print(os.getcwd())#获取当前目录 print(os.chdir(r"D:\program\python\code    阅读全文
posted @ 2019-02-18 12:18
Balllyh
阅读(1983)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号