concept

Interact with other programs using Python

笑着哭i 提交于 2019-11-26 21:47:36
I'm having the idea of writing a program using Python which shall find a lyric of a song whose name I provided. I think the whole process should boil down to couple of things below. These are what I want the program to do when I run it: prompt me to enter a name of a song copy that name open a web browser (google chrome for example) paste that name in the address bar and find information about the song open a page that contains the lyrics copy that lyrics run a text editor (like Microsoft Word for instance) paste the lyrics save the new text file with the name of the song I am not asking for

Interact with other programs using Python

回眸只為那壹抹淺笑 提交于 2019-11-26 08:03:27
问题 I\'m having the idea of writing a program using Python which shall find a lyric of a song whose name I provided. I think the whole process should boil down to couple of things below. These are what I want the program to do when I run it: prompt me to enter a name of a song copy that name open a web browser (google chrome for example) paste that name in the address bar and find information about the song open a page that contains the lyrics copy that lyrics run a text editor (like Microsoft

Node.js + Nginx - What now?

二次信任 提交于 2019-11-25 21:56:51
问题 I\'ve set up Node.js and Nginx on my server. Now I want to use it, but, before I start there are 2 questions: How should they work together? How should I handle the requests? There are 2 concepts for a Node.js server, which one is better: a. Create a separate HTTP server for each website that needs it. Then load all JavaScript code at the start of the program, so the code is interpreted once. b. Create one single Node.js server which handles all Node.js requests. This reads the requested