老师我的nameserver怎么启动不了
nameserver 是用什么命令启动的,老师
视频有问题,不全,从中间开始录,看不懂
为什么在之前HelloWorld案例中没有设置字符型响应时,写pw.writer(html格式),能够识别出是HTML?
('user',__name__),这里面的 user 是干啥的
为啥资料下载了打开总是乱码
from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver import ChromeOptions from time import sleep # 将浏览器设置为无头模式 def test_headless(): # 设置参数,将浏览器设置为无头浏览器 option = ChromeOptions() # 设置属性 option.add_argument('--headless') # 增加内容 # 设置驱动 s = Service(executable_path='./chromedriver.exe') # 启动Chrome浏览器 driver = webdriver.Chrome(service=s,options=option) # 访问页面 driver.get('http://www.baidu.com') # 打印代码 print(driver.page_source) # 关闭浏览器 driver.quit() # 给浏览器增加代理 def test_proxy1(): # 设置参数,将浏览器设置为无头浏览器 option = ChromeOptions() # 设置属性option.add_argument('--proxy-server=ip:port') option.add_argument('--proxy-server=http://221.199.36.122:35414') # 增加内容 # 设置驱动 s = Service(executable_path='./chromedriver.exe') # 启动Chrome浏览器 driver = webdriver.Chrome(service=s,options=option) # 访问页面 driver.get('http://httpbin.org/get') # 打印代码 print(driver.page_source) # 关闭浏览器 driver.quit() # 防止检测 def test_find(): # 老版 options = ChromeOptions() options.add_experimental_option('excludeSwitches', ['enable - automation']) options.add_experimental_option('useAutomationExtension', False) # 新版 chrome = webdriver.Chrome(chrome_options=options) chrome.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": """ Object.defineProperty(navigator, 'webdriver', { get: () => false }) """ }) chrome.get('http://httpbin.org/get') info = chrome.page_source print(info) sleep(100) if __name__ == '__main__': test_find()
是这样的
docker启动不了
#导入 3D 包 from mpl_toolkits.mplot3d import Axes3D #创建 X、 Y、 Z 坐标 X=[1,1,2,2] Y=[3,4,4,3] Z=[1,100,1,1] fig = plt.figure() # 创建了一个 Axes3D 的子图放到 figure 画布里面 ax = Axes3D(fig) ax.plot_trisurf(X, Y, Z) plt.show()
为什么我的绘制三维图像代码运行的结果是下面这样的?
库里面的test是怎么创建的
为什么我的这个运行不了?
视频list部分在for循环里第两次调用it2.next()方法是不是错写成了it.next(),,,,我在idea里试的时候再多写一个it2.next()只是不显示B,D--------为啥嘞??
所有的步骤都是一样的怎么会运行不出来呢?
老师为什么从资料里面下载的koala打不开,下载了好多次都打不开
老师,什么时候使用try catch 什么时候try with resource 我还是没听明白额
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637