nodemon:Server auto restart tool
When we modify the code, node has to restart manually, but it can follow nodemon.
npm install -g nodemon
After installing nodemon, you can use nodemon instead of node to start the application:
nodemon server.js
Looking at help, there are many options to be seen at a glance:
nodemon -h
# username = input("please enter your name:")# passport = input("please enter your passport:")# with open("list of info",mode="w", encoding="utf-8" ) as f:# f.write("{}\n{}".format(username,passport))# print("congratulations")lis = []i = 0while i < 3: uname = input("please enter your username:") passwd = input("please enter your password:") with open("list of info", "r", encoding="utf-8") as f: for line in f: lis.append(line) if uname == lis[0].strip() and passwd == lis[1].strip(): print("Login sucessfully") break else: print("wrong"...
C#Reflection detailed solution
(1)Reflection acquisition attribute
First, explain the meaning of some enumeration parameters obtained from the reflection property: BindingFlagsInstance|Public:Get common instance attributes (not static)Instance|NonPublic:Gets non public instance attributes (not static). (private/protect/internal)
Static|Public:Get public static attributesStatic|NonPublic:Gets non public static attributes. (private/protect/internal)
Instance|Static|Public:Get public instance or static attributesInstance|Static|NonPublic:No public instance or sta...
Topic: Give a graph and K queries, each query gives Nv nodes, and ask if the edges associated with these nodes contain all the edges of the whole graph.
Ideas: Firstly, because of the large number of nodes, adjacency table is used to store the graph, and unordered_map< int, unordered_map< int, bool> & gt; MP is used to represent the adjacency relationship between two vertices. When you query, read every time.If the number of edges deleted is equal to the total number of edges of the graph, output Yes; otherwise output No. PS. actually needs no additional vector< int> Adj[]...
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...