In linux, the meanings of shell variables $ #, $ @, $0, $1, $2,
Variable description
$
Shell PID (processID)
$!
The background ProcessID of the last shell Running
$?
End code of the last command (return value)
$-
Flag overview Set by using the Set command
$ *
List of all parameters. For example, if "$ *" is enclosed by "$1 $2 $3... $ n", all parameters
You webmaster good afternoon today to everyone to say that my station (A5 strictly do not take the site below the map) is to do machinery industry. Accept this site has been two weeks or so Baidu weight from 0-2. (Personal more inclined to the PR of GG because it is the official audit conditions of equality) although we all know Baidu weight is not the official launch is some other tools based on your site'
The sum of factorialEnter N, calculate s=1! +2! +3! + ... +n! The last 6 bits (excluding the leading 0). N≤10 6, n! SaidThe product of the first n positive integers.Sample input:10Sample output:Package Demo;import Java.util.scanner;public class Demo02 {public static void main (string[] args) {Scanner in=new Scanner ( system.in); int n=in.nextint (); Long sum=0;fo
the completion of the decompression, and into the YAF installation package directory, followed by the following command (where $php_ Bin is the bin directory of the PHP that is already installed on Linux)$PHP _bin/phpize ./configure--with-php-config= $PHP _bin/php-config make do installThe second step is to modify the PHP configuration file, add the yaf.so extension, and then restart PHP.So simple, the YAF extension has been installed, in fact, there is a simpler way, because YAF is a
for these things, the gods are already in the chest, but there are some just contact Linux , Unix people like these systems may not be familiar with these variables, so I'll share them with you today. What problem can add QQ Group, we discuss together -- Ops tribe:348384728To make it easier for everyone to understand, write a simple script that will explain the meaning of each variable later.# Touch Test# VI TestThe script reads as follows: #!/bin/shecho "number:$#"echo "Scname:$
The meaning of shell variable $#,$@,$0,$1,$2 in Linux is explained:
Variable Description:
$$
The shell itself PID (ProcessID)
$!
The PID of the Shell's last running background process
$?
End code of the last command to run (return value)
$-
Flag list using the SET command
$*
A list of all parameters. Output all parameters in the form of "$ $n", as in the case of "$*" with "".
$@
A list of all parameters. su
Theremainderfunctionand % operator. the following code cannot be compiled (gcc) # compile destdio. h # includefenv. hintmain () {doublex10; printf (x % 2% lfn, x % 2.0); return0;} operator % can only operate on Integer Data (guess, % is implemented based on the data bit shift ). this
The remainder function and % operator. the following code cannot be compiled (gcc) # include stdio. h # include fenv. hint main () {double x = 10; printf (x %
223222233322323233233233232332323332222222332323322232332233323222222322333223322323322332232332222333222233333323332322232232232222233232332323332232222233323332233323223222232232232232332222333332332333333332223233333323323232223232;int cnt[2][mx];int main(){for (int i = 1; i
Code for table creation: (enter 999 999 999)
/* 1.802 s */import java. io. bufferedInputStream; import java. math. bigInteger; import java. util. *; public class Main {sta
When importing open source projects, you always report this mistake.Error: (2, 0) Plugin with id ' com.github.dcendents.android-maven ' not foundWorkaround:First add global dependencies to the Build.grade under projectBuildscript { repositories { jcenter () } dependencies { ' Com.android.tools.build:gradle : 1.5.0 ' //1. Automated Maven Packaging plugin ' com.github
Variable Description:$$ the shell itself PID (ProcessID)$! PID of the Shell's last running background process$? End code of the last Run command (return value)$-flag at a glance using the SET command$* all parameter lists. All arguments are considered to be a string[email protected] all parameter lists. argument is a separate string$# number of arguments added to the shellThe file name of the shell itself$1~ $n Each parameter value added to the shell. $ $ is the 1th argument, and the $ = is the
When building the SAE Python environment locally, the following error is always reported:1F:\workspace\dev\python\frikyskice\1>dev_server.py2 Traceback (most recent):3File"C:\Python27\Scripts\dev_server.py", line 205,inch4 Main (options)5File"C:\Python27\Scripts\dev_server.py", line 165,inchMain6Options.__dict__. Update (CONF)7Valueerror:dictionary Update Sequence Element#0 have length 1; 2 is requiredLooki
Transferred from: http://www.cnblogs.com/fhefh/archive/2011/04/15/2017613.htmlThe meaning of shell variable $#,[email protected],$0,$1,$2 in Linux is explained:Variable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return value)$-Flag at a glance using the SET command$*All parameter lists. such as "$*" in the Case
Tensorboard
Tensorboard's official website tutorials are as follows:Https://www.tensorflow.org/versions/r0.7/how_tos/summaries_and_tensorboard/index.html
A simple explanation: Tensorboard is a visual tool that can be used to view TensorFlow diagrams and various values and images in the process.1. Add "Summary operations" to the desired node in the TensorFlow program, and "Summary operations" collects the node's data and marks the previous step, timestamp, and other identifiers to write to the e
Problem DescriptionWater problemInputEnter 2 dates, date by month date, month date by symbol-separated (topic contains multiple sets of data)OutputFind the number of days between these 2 dates (excluding itself), one row per group of test dataSample Input2011-1-12011-1-5Sample Output3HINTFor simplicity's sake, the assumption entered is 2 dates in the same month a
interface function shown is a specific five functions, it is basically COM (do not exclude some ordinary DLL implementation of these functions may be):1) DllMain: entry function, complete some DLL initialization work (DirectShow implementation is dllentrypoint);2) DllGetClassObject: Used to obtain the class factory pointer;3) DllCanUnloadNow: This function is called when the system is idle to determine whether the DLL can be unloaded;4) DllRegisterSe
Learning node (2) from 0 to 1 and building an http server
During the course of the previous section, we learned about the connection and differences between different module specifications. In this section, we officially started learning about node. First, we started from setting up an http server and running simple programs.1. hello world
Classichello world. First, createserver.jsTo save our code:
consol
$ file name and path$1,$2 parameter 1, parameter 2$# The number of arguments passed to the script or function $$ current shell process ID $? judge execution succeeded or not 0 for success [email protected] Pass all parameters of a script or function$* Pass all parameters of a script or function${}Note: [Email protected] and the $* 's All P
Tags: file run BSP case background POS linux lis Linux
The meaning of shell variable $#,[email protected],$0,$1,$2 in Linux is explained:Variable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return value)$-Flag at a glance using the SET command$*All parameter lists. such as "$*" in the Case of ""
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.