int.TryParse非预期执行引发的思考 问题出现 这天在写一个页面,想谨慎些就用了int.TryParse,结果出问题了. 代码如下: Copy int id = 1000; //Request.QueryString["id"] = null int.TryParse( Request.QueryString["id"], out id ); //使用 id 进行其他操作... 因为Request.QueryString["id"]…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Data.SqlClient; using System.Data; using System.Diagnostics; namespace Sample2 { class Progra…
2021-07-21 初稿 注释与回显 rem 回显 @取消单行回显 rem 注释有三种方式 :: %content% rem rem @取消单行回显,echo off取消后面的回显 @echo off rem 启用之后block中的临时变量 set enabledelayedexpansion 遍历 rem 在批处理脚本中需要使用两个百分号标识变量 %%a(命令行只需要一个,%a) for %%a in (*.mp4,*.mkv) do ( ffmpeg -i "%%a" -vcod…