@echo off echo.Current User is '%USERNAME%'echo.This script must run with administrative privileges to register ActiveX DLLsecho.Start register the DLL files.........please wait.for %%A in (A,B,C) do echo .hello %%A rem 两个::相当于注释.与rem相同,只是执行时不显示::后的内
一,如果我们将异常而不影响循环,如下代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace trycatch { class Program { static void Main(string[] args) { //将异常写在循环外,出现异常循环终止 try { Console.WriteLi
例子如下 set serveroutput on; declare V_SQL VARCHAR2(255); errorCode number; --异常编码 errorMsg varchar2(1000); --异常信息 out_return varchar2(1000); flag varchar2(10); CURSOR TP IS SELECT TABLE_NAME,CONSTRAINT_NAME FROM USER_CONSTRAINTS WHERE
1.统计列表中正数和负数的数量a = [1,3,5,7,0,-1,-9,-4,-5,8]b = []c = []for i in a : if i>0: b.append(i) elif i<0: c.append(i) else: pass print (len(b)) print (len(c))##打印函数在for循环内,输出的结果是 10203040404###打印函数放在if语句外 a = [1,3,5,7,0,-1,-9,-4,-5,8]b = []c = []for i in a