1—Read file xx.mp32—Play the sound and get the current playtime (milliseconds): time_ms3—Read external file: xx.lrc ——Reading the LRC file is a simple step, as is the way to read plain text files. ——The read LRC data is split by line (“/ n” is a newline character), and each element of the array represents one line of LRC content. —Simple regular expression application or string fetching substring operation —Separates strings by delimiters ——The time and lyrics of each line are extracted from the array, and the time string is converted into computer ...
The start of the September season has nothing to do with me.
There is no love on campus.
I am not a student, but I want to go back to school again.
I miss the innocence of primary school, the laughter of junior high school, the depression of high school, and the inaction of the University.
I’m working overtime this weekend. I’m typing code. I’m studying hard. I’m getting better and growing up.
Maybe life needs to be busy to get bored, and give yourself enough time to learn, come on!!!
import urllib.request
import json
import os #Import OS module
import requests #Import requests module
class BeautifulPicture():
def __init__(self): #Class initialization operations
self.headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'} #Specify a request header for the request to simulate the Chrome browser.
self.folder_path = 'D:\demo\BeautifulPicture' #Set the file directory to which pictures are to be stored.
#Using urllib2 to get network data
def registerUrl(self):
...
Copyright notice: This article is an original article for bloggers. It can not be reproduced without permission from bloggers. Https://blog.csdn.net/xpliruizhi123/article/details/54580850
Recently, it has been found that KETTLE decimation is getting slower and slower, especially when the incremental INSERT / UPDATE is incremental (TRASFORMATION takes 20 incremental decimations of 30 W per day from a 400 W table)Hour!!!! The read rate is 5/s…), which was discovered after my KETTLE tool was upgraded from 3.2 to 7.0 (slower than it used to be, it’s just acceptable, it...
In the process of computer program development, as more and more program code is written, the code in a file will become longer and longer, more and more difficult to maintain.
In order to write maintainable code, we grouped many functions into separate files, so that each file contained relatively little code, and many programming languages used this method of organizing code. In Python, a.Py file is called a module (Module).).
What are the advantages of using modules?
The biggest benefit is greatly improving the maintainability of the code. Second, writing code does not need to start from s...
C#Reflection – field details
C#The Type and FieldInfo that reflect the public field related classes are reflected.
Get related public fields public FieldInfo[] GetFields();//Get all public field collections public abstract FieldInfo[] GetFields(BindingFlags bindingAttr);//Gets the type constraint word. public FieldInfo GetField(string name);//Gets the field of the specified name public abstract FieldInfo GetField(string name, BindingFlags bindingAttr);//Gets the field of the specified name and constraint.
Assign values to object instance fields
...
Copyright notice: This article is an original article for bloggers. It can not be reproduced without permission from bloggers. Https://blog.csdn.net/ClamReason/article/details/49930479
Kettle > Second
2000‘ >/,get“, “run”ktr tree
Increase copy number: query class. Multithreading,2-8 in.kettle