Uninstall node
and execute the following script in turn on the terminal
sudo npm uninstall npm -g
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
sudo rm -rf /usr/local/include/node /Users/$USER/.npm
sudo rm /usr/local/bin/node
sudo rm /usr/local/share/man/man1/node.1
sudo rm /usr/local/lib/dtrace/node.d
So let’s verify that one last time
node //command not found
npm //command not found
That’s it.
reference address:
https://www.jianshu.com/p/920961b6a538
Some reports on the web show that there are problems when installing pandas, and the prompt seems to be the cause of PIP.
is probably your PIP version for too long. So it’s best to update the PIP at CMD first.
Enter the command in CMD:
python -m pip install -U pip
Successful information: Requirement already up-to-date.
Then turn on pycharm
1, click file/ Settings
2, and select project/project interpreter
in the popup screen
3. Click “+” on the upper right to enter the interface
for searching third-party libraries
4. Search the corresponding library or module to be installed in the search box, and click “Install Package” at the bottom left. If the installation is complete, the library displays the font color to blue, and in the previous screen lists the libraries you have installed

5. When it is finished, it will not be marked red when importing
For the email Sent just now, find it in the Sent Items Folder. Open it. In the Ribbon screen that opens the email, select the following option:
Actions –> Other Actions –> Recall This Message…

Then, choose from the following dialog:

That will do.
It also is not always going to be successful. If it has already been browsed, it is going to be unsuccessful, so it is going to be fast.
click on the top
“Front end talent” can subscribe oh!
Original title: “Three Ways to Factorialize a Number in JavaScript”
Sonya Moisset
The original link: https://medium.freecodecamp.com/how-to-factorialize-a-number-in-javascript-9263c89a4b38
2. The English version of the dictionary is translated by the English version of the dictionary
Front-end technology changes with each new day, a lot of new technical articles are in English, which requires us to have a good English ability, from today on small make up and we learn English while learning the front end, due to limited ability, welcome everyone correct, together to improve English.
This article is based on Free Code Camp Basic Algorithm Scripting “Factorialize a Number”.
Translation:
This article is based on the Free Code Camp basic algorithm script “Digital factorials”.
Note: Free Code Camp is a Free online learning website. Web site address: https://www.freecodecamp.com
Key words:
algorithm
An algorithm, esp in a computer program
In mathematics, the factorial of a non-negative integer n can be a tricky algorithm. In this article, I’m going to explain three approaches, first with the recursive function, second using a while loop and third using a for loop.
Translation:
In mathematics, factorial of a non-negative integer n can be a tricky algorithm. In this article, I’ll do it three ways, first with recursive functions, second with a while loop, and third with a for loop.
Key words:
factorial
It is a factor of two
N. The factorial product
non-negative
non-negative
tricky
Difficult to deal with; Difficult to deal with; Tricky; Crafty; scheming. The treacherous; Sly.
approach
vt.& Come near, come near, come near
Vt. Close to; Get to grips with; Make closer; Try to bribe (or influence, smooth)
N. method; Way; Close to the
Vi. Near
recursive function
Recursive function
We have already seen a recursion approach on a String in the previous article, How to Reverse a String in JavaScript in 3 Different Ways ?This time we will apply the same concept on a number.
Translation:
We’ve seen recursion in string manipulation in the last article. How do you reverse strings in JavaScript in three different ways?This time we’ll apply the same concepts to Numbers.
Key words:
concept
Concept; Point of view; Thought, conception, idea; The overall impression

Algorithm Challenge
Return the factorial of the provided integer.
If the integer is represented with the letter n, a factorial is the product of all positive integers less than or equal to n.
So, flexibly?B: Well, general rules are often terrible.
For example: 5! So it’s 1 times 2 times 3 times 4 times 5, which is 120
Translation:
Challenge algorithm
Returns the factorial of a specified integer.
If integers are represented by the letter N, the factorial is the product of all positive integers less than or equal to N.
Factorial is usually written in shorthand notation N! Said.
For example: 5! So it’s 1 times 2 times 3 times 4 times 5, which is 120
The function factorialize (num) {
return num;
}
factorialize(5);
Key words:
represented
V. representative; Reflect; To represent (a past tense and past participle); As a… The representative of the
positive
adj.
Positive; Be sure of STH. Positive; Positive
n.
Positive; Positive; [Language] a primal adjective; Positive quantity
shorthand notation
Simplify the symbol
Provided the test cases
Factorialize (0) should return 1factorialize(5) should return 120factorialize(10) should return 3628800factorialize(20) should return 2432902008176640000
Translation:
Provide test cases:
Factorialize (0) should return 1factorialize(5) should return 120factorialize(10) should return 3628800factorialize(20) should return 2432902008176640000
Key words:
provided
Conj. If; If; In the… Under the condition of
A. provide B. provide C. provide D. provide
What is factorializing a number all about?
When you factorialize a number, you are multiplying that number by each consecutive number minus one.
If your number is 5, you would have:
5! = 5 * 4 * 3 * 2 * 1
The pattern would be:
0! = 1
1! = 1
2! = 2 * 1
3! = 3 * 2 * 1
4! = 4 * 3 * 2 * 1
5! So it’s 5 times 4 times 3 times 2 times 1
Translation:
What exactly is a digital factorial?
When you take the factorial of a number, decrease the number by 1 each time and multiply.
If the number is 5, you should look like this:
5! So it’s 5 times 4 times 3 times 2 times 1
This pattern will:
0! = 1
1! = 1
2! = 2 * 1
3! = 3 * 2 * 1
4! = 4 * 3 * 2 * 1
5! So it’s 5 times 4 times 3 times 2 times 1
Key words:
consecutive
Continuous, continuous, or continuous; Indicating the result
multiplying
Six (multiply) four times from six. Multiply; multiply. Add to; add to Breed
1. Factorialize a Number With Recursion
The function factorialize (num) {
if (num < 0)
return -1;
Else if (num == 0)
return 1;
The else {
return (num * factorialize(num – 1));
}
}
factorialize(5);
2 Factorialize a Number with a WHILE loop
The function factorialize (num) {
var result = num;
If (num === 0 || num === 1)
return 1;
while (num > 1) {
num–;
result *= num;
}
return result;
}
factorialize(5);
3 Factorialize a Number with a FOR loop
The function factorialize (num) {
If (num === 0 || num === 1)
return 1;
for (var i = num – 1; i > = 1; I -) {
num *= i;
}
return num;
}
factorialize(5);
About today’s article sharing here, I hope you have a harvest, about the original English please click on the original reading view (need over the wall to see, you know)

The public,
The front-end talent
Long press to identify the left two-dimensional code to follow me click below “read the original” to view the English text down down down
C/C++ library function (tolower/toupper) implements case conversion of letters
This article will introduce the library function to implement the case conversion of letters, commonly used in the type. H (c ++ is cctype) library file under the definition of function methods. First let’s look at the prototype implementation of the tolower/toupper function under C:
int tolower(int c)
{
if ((c >= 'A') && (c <= 'Z'))
return c + ('a' - 'A');
return c;
}
int toupper(int c)
{
if ((c >= 'a') && (c <= 'z'))
return c + ('A' - 'a');
return c;
}
And I’m going to do that with two little demos.
C implementation:
#include<string.h> //strlen
#include<stdio.h> //printf
#include<ctype.h> //tolower
int main()
{
int i;
char string[] = "THIS IS A STRING";
printf("%s\n", string);
for (i = 0; i < strlen(string); i++)
{
string[i] = tolower(string[i]);
}
printf("%s\n", string);
printf("\n");
}
Save as xxX. c file, execute: GCC-O XXX xxX. c generate execute file XXX. Operation:./ XXX

above is the implementation of C. Similarly, the implementation under C++ is as follows:
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main()
{
string str= "THIS IS A STRING";
for (int i=0; i <str.size(); i++)
str[i] = tolower(str[i]);
cout<<str<<endl;
return 0;
}
Save as xxx. CPP, execute g++ xxx. CPP to generate the execution file a.ut, execute a.ut, and the effect is as follows:

The demo above
implements the upper case tolower case conversion, again, the lower case toupper case conversion is the same, just replace tolower with toupper.
Open Device File Explorer-& GT; Locate the MNT folder -> Find the SDCard folder -> Find storage – & gt; Find your file in turn (add it if you don’t have one) -> Just put the full path in your code.
eg:
String sdpath = Environment.getExternalStorageDirectory()
.getAbsolutePath();
filepath = File.separator + "mnt" + File.separator + "sdcard" + sdpath + File.separator + "movie.mp4";
2. Install Tensorflow
TensorFlow currently only supports Python 3.5 on Windows.
(1) open Anaconda Prompt and input tsinghua warehouse image, so that the update will be faster: 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
12
(2) Also use Anaconda Prompt to create a Python3.5 environment with the name of TensorFlow. Type the following command:
conda create -n tensorflow python=3.5
1
Run start menu -> Anaconda3 - & gt; Anaconda Navigator, click the left Environments, you can see that the environment of tensorflow has been created.


(3) TensorFlow environment is started in Anaconda Prompt:
activate tensorflow
1

Note: when not using tensorflow, close the tensorflow environment with the command:
deactivate
After installing the environment, we go to the folder we want to run, such as CD TensorFlow
Then activate tensorFlow

The TensorFlow environment is fine, but tensorFlow is not installed,
conda insatll tensorflow
And in the environment to install jupyter Notebook, NUMpy and other modules
conda install jupyter notebook
conda install scikit-learn
From https://blog.csdn.net/u010858605/article/details/64128466
: : : : : : : : : : : : : : :
#include<iostream>
#include<cmath>
using namespace std;
int main(){
cout<<"round(1.3) = "<<round(1.3)<<endl
<<"round(1.5) = "<<round(1.5)<<endl
<<"round(-1.3) = "<<round(-1.3)<<endl
<<"round(-1.5) = "<<round(-1.5)<<endl;
return 0;
}

this function takes the form of
double round(double d);
> > > > > > > > > > cmath>
make
this program will look for a file named
makefile in your directory, and then execute it.
If you have several makefiles, then you can execute them with the command:
make -f MyMakefile
There are several other switches to the
make utility. For more info,
man make.
Build Process
Compiling by hand The trivial way to compile the files and obtain an executable, is by running the command:
g++ main.cpp hello.cpp factorial.cpp -o hello
The basic Makefile The basic makefile is composed of:
target: dependencies [tab] system command
This syntax applied to our example would look like:
all: g++ main.cpp hello.cpp factorial.cpp -o hello
[Download
here]
To run this makefile on your files, type:
make -f Makefile-1
On this first example we see that our target is called
all. This is the default target for makefiles. The
make utility will execute this target if no other one is specified.
We also see that there are no dependencies for target
all, so
make safely executes the system commands specified.
Finally, make compiles the program according to the command line we gave it.
Using dependencies Sometimes is useful to use different targets. This is because if you modify a single file in your project, you don’t have to recompile everything, only what you modified.
Here is an example:
all: hello hello: main.o factorial.o hello.o g++ main.o factorial.o hello.o -o hello main.o: main.cpp g++ -c main.cpp factorial.o: factorial.cpp g++ -c factorial.cpp hello.o: hello.cpp g++ -c hello.cpp clean: rm -rf *o hello
[Download
here]
Now we see that the target all has only dependencies, but no system commands. In order for make to execute correctly, it has to meet all the dependencies of the called target (in this case all).
Each of the dependencies are searched through all the targets available and executed if found.
In this example we see a target called clean. It is useful to have such target if you want to have a fast way to get rid of all the object files and executables.
Using variables and comments You can also use variables when writing Makefiles. It comes in handy in situations where you want to change the compiler, or the compiler options.
# I am a comment, and I want to say that the variable CC will be # the compiler to use. CC=g++ # Hey!, I am comment number 2. I want to say that CFLAGS will be the # options I'll pass to the compiler. CFLAGS=-c -Wall all: hello hello: main.o factorial.o hello.o $(CC) main.o factorial.o hello.o -o hello main.o: main.cpp $(CC) $(CFLAGS) main.cpp factorial.o: factorial.cpp $(CC) $(CFLAGS) factorial.cpp hello.o: hello.cpp $(CC) $(CFLAGS) hello.cpp clean: rm -rf *o hello
[Download
here]
As you can see, variables can be very useful sometimes. To use them, just assign a value to a variable before you start to write your targets. After that, you can just use them with the dereference operator $(VAR).
Where to go from here With this brief introduction to Makefiles, you can create some very sophisticated mechanism for compiling your projects. However, this is just a tip of the iceberg. I don’t expect anyone to fully understand the example presented below without having consulted some
Make documentation (which I had to do myself) or read pages 347 to 354 of your Unix book.
CC=g++ CFLAGS=-c -Wall LDFLAGS= SOURCES=main.cpp hello.cpp factorial.cpp OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=hello all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ .cpp.o: $(CC) $(CFLAGS) $< -o $@
[Download
here]
If you understand this last example, you could adapt it to your own personal projects changing only 2 lines, no matter how many additional files you have !!!.
Hector Urtubia
