Fix: change.half() to.float() in the detection module.

Reference data: https://blog.csdn.net/hxx123520/article/details/112562930

Plt.imShow (image) #image represents the image to be processed
plt.show()
How It Works: The plt.imShow () function is responsible for processing the image and displaying its format, while plt.show() displays the function processed by plt.imShow ().
The following code
#!/usr/bin/python
# coding:utf-8
import docx
def main():
filepath = 'test.docx'
filepath1 = 'wtest.docx'
newdocx = docx.Document(filepath)
table = newdocx.tables
for oTable in table:
rows_num = len(oTable.rows)
columns_num = len(oTable.columns)
cell = oTable.cell(3, 0)
# cell.add_paragraph("a")
cell.text = ""
cell.paragraphs[-1].runs[0].add_picture('t1.jpg')
print(rows_num)
print(columns_num)
newdocx.save(filepath1)
if __name__ == '__main__':
main()
Refer to the official website:
http://scikit-learn.org/dev/developers/advanced_installation.html#install-bleeding-edge
The screenshot is as follows:

Under the CMD window, enter:
PIP install -u scikit-learn PIP install -u scikit-learn
Since I installed Anaconda first, I installed version 0.17 of Scikit-Learn by default, but in IPython interactive mode type:
Error from sklearn.model_selection import KFold No module named model_selection
The diagram below:

StratifiedKfold and other classes must be import from sklearn.cross_validation. For example:
from sklearn.cross_validation import KFold
The parameters of this version of KFold etc. are different from those of 0.18. See the documentation on the website for details.
SQL injection is used for ASP + Access website
ASP is Active Server Pages, which is a server-side script environment developed by Microsoft Corporation. It can be used to create dynamic interactive web Pages and establish powerful web applications. When the server receives a request for an ASP file, it processes server-side script code that is included in the HTML (Hyper Text Markup Language) Web page file that is built to be sent to the browser. In addition to server-side script code, an ASP file can also contain text, HTML (including related client-side scripts), and COM component calls.
Microsoft Office Access is a relational database management system released by Microsoft. There’s only the concept of tables.
There are many scanning tools for Web applications: AWVS, AppScan, OWASP ZAP, etc. The following is probed using OWASP-ZAP.

3. Vulnerability Analysis
Analyze the contents marked red in the scan results.

4. SQL injection point using
using SQLMap test. Note: Access only has the concept of a table.
if "%1"=="hide" goto CmdBegin
start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit
:CmdBegin
BeautifulSoup4 retrieves the value of the class attribute of the tag
Recently, when I was writing a crawler, I suddenly needed to determine whether the class value of the current tag was a specific value. After searching online, I found that it was not very helpful, so I made a note of it.
Using the GET method
html = BeautifulSoup(request,'lxml')
a = html.find_all('a')
for i in a:
if (i.get('class') == 'xxx'):
url = i.get('href')
return url
return None
The above code has the following functions:
When reading a CSV file using pd.read_csv(), the following error occurs:
UnicodeDecodeError: ‘UTF-8’ codec can’t decode byte 0xD0 in position 0: invalid continuation byte
The file is not encoded in UTF8, and the system uses UTF8 decoding by default. The solution is to change the corresponding decoding mode.
Solutions:
select encoding a drop-down box, choose the required encoding UTF8, re-save can
finally to run the code, the problem is resolved ol>
driver.find_element_by_xpath("//*[@id=\"style_box\"]/div[1]").click()
#Select(s).select_by_index(3)
driver.find_element_by_xpath("//*[@id=\"style_box\"]/div[2]/div[1]/table/tbody/tr[2]").click()
Very simple two clicks, run after an error selenium.com mon. Exceptions. ElementNotVisibleException: Message: element not interactable
After debugging for several times, it was found that there was no waiting time added. Add time.sleep(3), debug again, and it was successful.
On the one hand, we must analyze the front-end code, on the other hand, when the foot is wrong, especially when it comes to switching, it is better to add a wait time to try ~~

Windows resolves enabling visdom.server slow and blank blue screen (no navigation bar)

ke a little while <>ode>take a little while take a little while The solution is as follows:
visdomrectory (.> \ [local] Anaconda3 \ Lib \ site - packages \ visdom code>), open the inside of the server. Py code> file, directly turn to find the file last download_scripts_and_run () code>, will be one of the download_scripts () code> commented out, as follows:
then you can start quickly but also have the port, but after the browser is "blue screen", there is no navigation, the diagram below:
to see the process in the CMD, said error Could not open the static file code>, illustrate the static code> missing some necessary documents can't find it in the
then only need to put the missing file up the line. Here for everybody, you just need to put the visdom code> in the static code> replace the static code>.
Link: https://pan.baidu.com/s/1fDKi2rAtot-PcHGTXH8fbA
extraction code: li1w
python-m visdom.server/ code>>

The article directories
Python Comment and Uncomment multiline programs 1, Method 1 (recommended) 1, Comment 2, Uncomment 2, Method 2
Python annotation and uncomment multiline programs
In the program, sometimes you want to comment out the multi-line program, line by line comment is more troublesome, so can you comment more lines, yes, there are several methods:
1. Method 1 (recommended)
1, comments,
Select the paragraph you want to comment, press Ctrl +/, and the effect looks like this:

2. Uncomment
Click Ctrl +/ again to uncomment
Second, method 2
Enclose the entire paragraph in three double or multiple quotes, as shown in the figure
Select the code and hold down Ctrl+/ to comment the selected line. Press Ctrl+/ again and the comment is removed.