python基本语法003

# 模块,导包,引用
# import
print("import ...-----------")
import time
#print(help(time))
print(time.ctime())


# from ... import ...
print("from ... import ...-----------")
from time import ctime,sleep
#print(help(time))
print(ctime())
sleep(2)
print(ctime())


# from time 导time下的所有方法,不建议这么写,不清楚是自定义的还是自带的
from time import *


from time import sleep as sys_sleep
def sleep(sec):
print("my sleep" + str(sec))
sys_sleep(2)
sleep(2)


from selenium import webdriver
dr = webdriver.Chrome()

from selenium.webdriver import Chrome
dr = Chrome()

















猜你喜欢

转载自www.cnblogs.com/qiuleizhilianlove/p/9397443.html