In-depth analysis of Chinese code scrambling in maven compile by idea under windows

There are a lot of articles on the Internet saying solutions, but they don't analyze the reasons. The solution is idea settings Add - Dfile.encoding=GBK or GB2312 to VM Options, so the garbled code will be the correct Chinese character, BUT!!!, why? Cause analysis -How does idea interact with maven C:\Java\jdk1.8.0_162\bin\java.exe -Dmaven.mult ...

Posted on Mon, 30 Mar 2020 23:59:19 -0400 by diesel

Install ios application with plist

Step one: When using MACBOOK to export ipa, we get ipa and a plist file When you see the plist we exported, you need to notice that two of them have been marked in Chinese. One is the URL, one is the bundle identifier <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://ww ...

Posted on Sun, 29 Mar 2020 14:12:12 -0400 by geebo

Python's web crawler

I've always been interested in crawlers, and I'd like to write a crawler to climb something. I've just seen a python tutorial recently, and I've just seen an introduction about this aspect of the blog. As a beginner, I take it as a learning record. If I can also help other people solve common problems, it's better. 1, Inst ...

Posted on Sun, 29 Mar 2020 12:08:31 -0400 by Sarahlmorrow

Two ways to encapsulate python operation log

Method 1 import logging class Log(object): def __init__(self, name=__name__, path='mylog.log', level='DEBUG'): self.__name = name self.__path = path self.__level = level self.__logger = logging.getLogger(self.__name) self.__logger.setLevel(self.__level) def __ini_handler(self): """Initia ...

Posted on Sat, 28 Mar 2020 10:06:22 -0400 by sweyhrich

Your Sharp Tool for Online Purchase Price Monitoring-python+crawler+WeChat Robot

  Preface Text and pictures of the text come from the network for learning and communication purposes only. They do not have any commercial use. Copyright is owned by the original author. If you have any questions, please contact us in time for processing. Author: Wind, How PS: If you need Python learning materials for your child, click on th ...

Posted on Sat, 28 Mar 2020 05:03:26 -0400 by ShadowIce

Python_Common Built-in Functions

1. Method Note: class is a collection of objects with the same properties and methods. 2. Examples (1) Data/collection type str(object=''); str(object=b'', encoding='utf-8', errors='strict') int(x, base=10) float(x=0) complex(real=0, imag=0) 1 >>> str(123) 2 '123' 3 >>> str(['a', 'b', 'c']) 4 "['a', 'b', 'c']" 5 >& ...

Posted on Fri, 27 Mar 2020 13:18:34 -0400 by rdbdba

Python Linear Data Structure

python linear data structure Catalog 1 Linear data structure 2. Built-in common data types 2.1 numerical model 2.2 Sequence 2.2.1 list list list list 2.2.2 tuple tuple 2.2.3 string 2.2.4 bytes 2.2.5 bytearray byte array <center>Code every article in python. </center> 1 Linear data structure This chapter describes the ...

Posted on Thu, 26 Mar 2020 14:50:29 -0400 by CraigRoberts

android -------- custom control (3)

In the previous section, I briefly described several methods of custom control in Android. Today, I realize a simple case through code   Customize a pie chart Custom control example: Here is an example of how to inherit View public class CircularView extends View { /**** * The third parameter in a three parameter constructor is ...

Posted on Thu, 26 Mar 2020 12:49:53 -0400 by pdub56

The advanced level of python basic learning day11 function

Trap of default parameter (only for variable data type): if the default parameter uses variable type data, the default parameter is the same (id is the same) no matter how many times it is called. The variable data type of the default parameter is neither global nor local, and will not disappear after definition (the local naming space will d ...

Posted on Mon, 23 Mar 2020 09:06:11 -0400 by lizard

Python3 Standard Library: Pile Object Serialization

1. Pile object serialization The pickle module implements an algorithm that converts any Python object into a series of bytes.This process is also known as serializing objects.You can transfer or store byte streams that represent objects, then reconstruct them to create new objects of the same nature. 1.1 Encoding and decoding data in strings T ...

Posted on Sun, 22 Mar 2020 02:42:22 -0400 by wacook