java array advanced

(fill in the blank) the length of the array is fixed. If you need to expand, you must create a new array. The length of the original array should be copied to the new array. (fill in the blank) in java, when an array type variable passes a value, it actually passes the address of the array. (short answer) there are several ...

Posted by eagleweb on Mon, 02 Dec 2019 21:25:22 -0800

day 9 - 2 function exercise

1. Write the function, check and get all the elements corresponding to the odd digit index of the incoming list or tuple object, and return them to the caller as a new list. def func(lis): print(lis[1::2]) #Even number return lis[::2] #Count f=[1,2,3,4,5,6] print(func(f))   2. Write a function to determine whether the leng ...

Posted by sweetstuff2003 on Mon, 02 Dec 2019 17:37:36 -0800

Summary of JavaScript basic video tutorial (Chapter 081-090)

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>081-090 Chapter summary</title> </head> <body> <pre> 081. Date object //Using Date object to represent a time in JS </pre> <script type="text/javascript"> console.log("--081--"); //If you use the ...

Posted by wrathican on Mon, 02 Dec 2019 01:53:19 -0800

My Python analysis growth path 3

December 30, 2018 A collection is a collection of elements that are not repeated in order. Basic functions include relationship testing and de duplication. Create collection: braces or set() Function can be used to create a collection. Note: to create an empty set, you must use set() instead of {}, which is used to create an empty dictionary. B ...

Posted by matt_wood87 on Sun, 01 Dec 2019 22:54:32 -0800

ubuntu, debian install redis, set the startup auto start and password, and allow Internet access

The package of apt comes with redis. If the version of redis is not very high, you can directly use apt to install it: apt install redis-server Start redis: redis-server Start command line interface: redis-cli Note: after apt installation, the location of redis configuration file is / etc/redis/redis.conf To modify a profile: ...

Posted by ElkySS on Sun, 01 Dec 2019 17:59:17 -0800

Enterprise app ipa package deployed to its own server

Preface:Recently, it has started to march into the pit of uni app mixed development, which has been mined countless, and its strength can be improved a little every time it crosses a pit. Now you need to deploy the enterprise app ipa package to your own server to download. All ipa packages deploy their own servers and finally have the following ...

Posted by iandotcom on Sun, 01 Dec 2019 13:11:54 -0800

python data file reading and writing

CSV Format reading and writing Comma separated values are sometimes referred to as character separated values because the separated characters can also be non commas. Separated files are called csv and separated files are called tsv One thing to note: separator import csv data=[] with open(r'data.csv',) as csvfile: file_list = csv.read ...

Posted by ethridgt on Sun, 01 Dec 2019 12:56:10 -0800

Puzzle -- merging of two ordered linked list sequences (20 points) (comparison of two algorithms)

7-18 merging of two ordered linked list sequences (20 minutes) Given two non descending list sequences S1 and S2, the design function constructs a new non descending list S3 after the combination of S1 and S2. Input format: The input is divided into two lines. Each line gives a non descending sequence composed of several pos ...

Posted by redgtsviper on Sun, 01 Dec 2019 12:07:57 -0800

koa-log4 manages nodeJs access log and system log

Use the nodeJs koa2 framework to develop back-end applications, and use the koa-log4 middleware to manage the access logs and system logs of nodeJs. I. installation of koa-log4 Because the project uses koa2, the higher version of log4 is installed, $ npm i --save koa-log4@2 If using koa1, use the directive $ npm i --save koa-log4@1 koa-log4 Np ...

Posted by petethepirate on Sun, 01 Dec 2019 10:15:49 -0800

excel for xlwt operation in python

In python, using xlwt to operate excel is very square. Compared with Java using apache poi, this is paradiseI. install xlwt module pip3 install xlwt 2. Simple use of xlwt import xlwt #Import module workbook = xlwt.Workbook(encoding='utf-8') #Create a workbook object worksheet = workbook.add_sheet('sheet1') #Create sheet sheet sheet workshee ...

Posted by Thatsmej on Sat, 30 Nov 2019 15:39:38 -0800