python global replacement program

Exercise 1 - global replacement procedure: 1. Write a script to allow the user to perform global replacement of the specified file content as follows   python your_script.py old_str new_str filename2. After the replacement, print how many parts have been replaced 1. Contents of TXT: Ma Xianyu Shenzhen 173 13744234523 Qiao Yifei Guangzho ...

Posted by axnoran on Fri, 01 Nov 2019 02:55:12 -0700

python crawler - public comment - merchant comment

Grabbing content: public comments - Beijing - Haidian District - Gourmet Merchants - comments in recent three months 1. Required configuration: chrome browser, selenium package of python, selenium Start selenium, execute the following code, and then you can see a new chrome icon. It's a test browser, where you can log ...

Posted by bob_rock on Thu, 31 Oct 2019 06:45:14 -0700

Python helps you design your personal signature

As long as you leave school, the chances of writing are very few, but the chances of signing are very many. If you can't write well, but you can sign a good name, it's also a good choice. Basic environment configuration Version: Python 3.6 Modules: tkinter, PIL, requests tkinter is a built-in mo ...

Posted by mady on Thu, 31 Oct 2019 04:59:52 -0700

Camera is called and displayed in Android.

Here is mainly through the click of the button to open the camera, and then the pictures taken are displayed. First, add these two permissions to Android manifest.xml: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permiss ...

Posted by mmilano on Thu, 31 Oct 2019 03:09:06 -0700

[Spring Boot] 07 @PropertySource and @ ImportResource

@PropertySource and @ ImportResource @**PropertySource * *: load the specified configuration file @**ImportResource * *: import the Spring configuration file to make the content in the configuration file effective How SpringBoot recommends adding components to containers: how to recommend usa ...

Posted by mk1200 on Wed, 30 Oct 2019 22:51:46 -0700

Using log4net log output to MySQL database

Original link: http://www.cnblogs.com/sql4me/p/3254134.html Using Log4Net's output log to MySQL The operation steps are as follows: 1. Add reference Log4Net.dll, mysql.data.dll to the project note: the version of mysql.data.dll should b ...

Posted by dadamssg on Wed, 30 Oct 2019 12:21:26 -0700

Android defines html document and loads display in string.xml, and intercepts WebView link event

I. how to define html document in string.xml First of all, it's better to create a new html file by yourself, and then start writing your own content. And preview the effect in the browser. First, write a simple html document in advance: <html> <head> <style type="text/css"& ...

Posted by junkie_doodle on Wed, 30 Oct 2019 09:41:26 -0700

Summary of the methods of setting up and obtaining custom header information in js ajax

Catalog 1. Set the custom header in js ajax 1.1 method 1: 1.2 method 2: 2. js ajax obtains the header information of the response returned by the request 3. Get customized header information when js ajax cross domain requests 1. Set the custom header in js ajax 1.1 method 1: $.aja ...

Posted by evan18h on Tue, 29 Oct 2019 13:22:01 -0700

The record of base64 encoding and decoding after des CBC encryption and decryption using openssl Library under linux c

The record of base64 encoding and decoding after des CBC encryption and decryption using openssl Library under linux c Decoding and encoding process Des CBC decryption encryption code base64 decoding group code main function Decoding and encoding process In the process, the encrypted xml documen ...

Posted by mattheww on Tue, 29 Oct 2019 07:58:43 -0700

android pull-up load more show all data solutions

When I use the BaseQuickAdapter universal adapter to pull up and load more data, no matter whether I slide the interface or not, the pull-down loading has been loading more data, which does not meet the requirements of pulling down and starting to load more data at last. No more nonsense, layout: <?x ...

Posted by Jocke on Mon, 28 Oct 2019 12:32:04 -0700