Write a three-level dynamic Read folder Drop-down menu examples for your reference!
' Get the folder path. Note Setting the file name
Urlpath=server.mappath ("Ook")
Set Fsobrowse=createobject ("Scripting.FileSystemObject")
' Set folder path
If Request ("path") = "" Then
lpath=urlpath ""
Else
Lpath=request ("path") ""
End If
%>
NS4 = (document.layers)? 1:0;
IE4 = (document.all)? 1:0;
Ver4 = (NS4 | | IE4)? 1:0;
if (ver4) {
With (document) {
Write ("");
Enter a classmate's score and judge whether the grade is good or not. #!/bin/bash read-p "Please input a number:" N # read-p is to read the user's input data, defined in the variable inside if [-z] $n "] then echo" Please input a
Number. "
Exit 1 # "Exit 1" indicates that an unhealthy operation resulted in the exit of the program #退出之后, echo $? Returns a value of 1 indicating that the program exited because of an error and that the previous command was executed with or without errors. Fi n
1. Ask modulation :
"Amplitude shift keying" is also known as "amplitude keying", or "open key Control" (on-off keying), so it is also recorded as Ook signal. Ask is a relatively simple method of modulation. The amplitude shift keying (ASK) is equivalent to the amplitude modulation in the analog signal, except that the binary digital is multiplied by the carrier signal. Amplitude shift is the frequency, phase as a constant, and the amplitude as a vari
public void onCreate (Sqlitedatabase db) {//Execsql method using DB to execute the method of creating the data table Db.ex
Ecsql (Create_book); Db.execsql (Create_catEgory);
Toast.maketext (Mcontext, "Create data successfully!", Toast.length_short). Show ();
The method of updating the data; The method of updating the data content; Because the database is already available, the database will not be created again; @Override public void Onupgrade (sqlitedatabase db, int oldversion, int newvers
greater than or equal to 0thentag=1 first mark with Tag=1 elif[nbsp, $n -ge60][ $n -lt80] $n greater than 60 less than 80 thentag=2elif[ with tag=2 Mark $n -ge80] [ $n -lt90] $n is greater than or equal to 80 and less than 90 is marked thentag=3elif[ with tag=3 $n -ge90][ $n -le100] $n greater than or equal to 90 and less than or equal to 100 with tag= 4 = thentag=4else is not the case of tag=0tag=0ficase $tag in1) echo "Notok";; 2) echo "OK"; 3) echo "
"please input a number." Exit 1fin1= ' echo $n |sed ' s/[0-9]//g ' if [-N ' $n 1 "]thenecho" please input a number. " Exit 1fiif [$n-lt] [$n-ge 0]thentag=1elif [$n-ge] [$n-lt]then#!/bin/bash#read User-entered value to Nread-p "Please input a number:" n# if n is empty, the user does not enter if [-z] $n "]thenecho" please input A. " Exit 1fi# Determines whether the input is a number, is not a number when prompted and exits n1= ' echo $n |sed ' s/[0-9]//g ' if [-N ' $n 1 "]thenecho" please inpu
"Please input a number."Exit 1FI//If empty, the input is valid, continue to execute the following script contentIf [$n-lt] [$n-ge 0]//If it is a number, you need to determine the range of the numbersThenTag=1elif [$n-ge] [$n-LT 80]Thentag=2elif [$n-ge] [$n-LT 90]ThenTag=3elif [$n-ge] [$n-le 100]ThenTag=4ElseTag=0FiCase $tag in1)echo "Not OK";;2)echo "OK";;3)echo "Ook";;4)echo "Oook";;*)echo "The number range is 0-100.";;EsacLogical judgment File
-w ‘user1‘ /etc/passwd;then useradd user1;fi # !取反if [!-e file]; Then what happens when the file doesn't exist?if (($a Symbols such as Iv. Case JudgmentCase judgment in the 1?shellFormat:case??量名 in value1) command ;; value2) command ;; *) commond ;; esacIn a case program, you can use the |, meaning, or mean of a condition such as2|3)
" indicates the return value after executing the partial command # that is, after the command executes, use the value of echo $ Fin1= ' echo $n |sed ' s/[0-9]//g ' #判断用户输入的字符是否为纯数字 # If it is a number, replace it with a null, assign to $ n1if [-N "$n 1"]then echo "please input a number." Exit # determines that $N1 is not empty (that is, $n is not a pure number) again prompts the user to enter the numbers and exits fi# if the user enters a pure number, execute the following command: if [$n- LT]
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.