草庐IT

print_message

全部标签

message from server: “Host is not allowed to connect to this MySQL server“问题的解决办法

数据库安装完成后,默认是不能远程登陆的,只能在本地用localhost或者127.0.0.1登录访问,如果需要远程登录,则需要修改mysql设置,具体修改方式:1、本地登录mysql: [root@localhost~]$mysql-uroot-p1234562、查看数据库中mysql表中的权限设置:mysql>usemysql;ReadingtableinformationforcompletionoftableandcolumnnamesYoucanturnoffthisfeaturetogetaquickerstartupwith-ADatabasechangedmysql>select

pointers - 戈朗 : interface func to print memory address

我很好奇为什么直接在var上打印内存地址有效,但尝试通过接口(interface)执行相同的操作却无法打印出内存地址?packagemainimport"fmt"typeaddressstruct{aint}typethisinterface{memory()}func(adaddress)memory(){fmt.Println("a-",ad)fmt.Println("a'smemoryaddress-->",&ad)}funcmain(){ad:=43fmt.Println("a-",ad)fmt.Println("a'smemoryaddress-->",&ad)//codei

pointers - 戈朗 : interface func to print memory address

我很好奇为什么直接在var上打印内存地址有效,但尝试通过接口(interface)执行相同的操作却无法打印出内存地址?packagemainimport"fmt"typeaddressstruct{aint}typethisinterface{memory()}func(adaddress)memory(){fmt.Println("a-",ad)fmt.Println("a'smemoryaddress-->",&ad)}funcmain(){ad:=43fmt.Println("a-",ad)fmt.Println("a'smemoryaddress-->",&ad)//codei

解决selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted

用selenium爬数据的时候,明明每一步点击都加了WebDriverWait,但还是爬一会儿就显示如下错误:selenium.common.exceptions.ElementClickInterceptedException:Message:elementclickintercepted:Elementtrclass="even"onclick="onclick_shipinsp(this,'insp')">.../tr>isnotclickableatpoint(509,404).Otherelementwouldreceivetheclick:divclass="blockUIbloc

postman能访问,程序不行,报错信息:Message“:“internal error, Unacceptable header specified in request

 在开发过程中发现一个奇怪的现象,同样的ip地址postman能获取到正确的返回,程序中不行,返回的是 error":{"code":"Base.1.0.GeneralError","@Message.ExtendedInfo":{"Message":"internalerror,Unacceptableheaderspecifiedinrequest"    解决办法:最后发现是程序中没有设置请求头信息,而postman的请求头中有7项信息。     经过测试发现在程序请求头中加入关键信息httpget.setRequestHeader("Accept","*/*");最后请求成功。 

selenium.common.exceptions.SessionNotCreatedException: Message: session not created 解决办法

一、问题原因报这个错是因为当前浏览器的版本与chromedriver.exe的版本不一致了。这个时候你需要先知道自己当前浏览器的版本,然后再去下载一个chromedriver.exe的对应版就好了二、解决办法1、查看浏览器版本帮助-关于GoogleChromehttps://registry.npmmirror.com/binary.html?path=chromedriver/(浏览器版本地址)下载对应版本zip,解压把chromedriver.exe放到python文件夹下

Unrecognized SSL message, plaintext connection?

2023-03-0709:59:01.431ERROR8619---[nio-8060-exec-1]o.a.c.c.C.[.[.[/].[dispatcherServlet]:Servlet.service()forservlet[dispatcherServlet]incontextwithpath[]threwexception[Requestprocessingfailed;nestedexceptioniscn.hutool.core.io.IORuntimeException:SSLException:UnrecognizedSSLmessage,plaintextconnecti

go - fmt.Print in go routine *may* not output when master thread is loop

以下代码与https://play.golang.org/p/X1-jZ2JcbOQ中的一样packagemainimport("fmt")funcp(sstring){fmt.Println(s)}funcmain(){gofmt.Println("1")gop("2")for{}//infiniteloop}在使用golang1.11的Windows中肯定打印12但在使用golang1.11.4的Linux中绝对不打印任何内容。我能理解前者的行为,但不能理解后者。为什么go程序一直不运行非master线程?这背后有什么原因吗? 最佳答案

go - fmt.Print in go routine *may* not output when master thread is loop

以下代码与https://play.golang.org/p/X1-jZ2JcbOQ中的一样packagemainimport("fmt")funcp(sstring){fmt.Println(s)}funcmain(){gofmt.Println("1")gop("2")for{}//infiniteloop}在使用golang1.11的Windows中肯定打印12但在使用golang1.11.4的Linux中绝对不打印任何内容。我能理解前者的行为,但不能理解后者。为什么go程序一直不运行非master线程?这背后有什么原因吗? 最佳答案

python selenium报错:Message: javascript error: arguments[0].click is not a function

 这是selenium比较常见的报错,所以记录一下解决方法,避免总是忘记。代码示例:fromosimporttimesfromseleniumimportwebdriverfromselenium.webdriver.chrome.optionsimportOptionsfromselenium.commonimportexceptionsasselenium_eximporttimefromselenium.webdriver.commonimportby#问题部分代码:click1=wd1.find_elements_by_xpath(div1)time.sleep(1.5)wd1.exe