1.单行注释,使用符号# echo " echo "test" #echo "comment“ 2. 多行注释 (1)使用 :<<! ! filename=test.txt :<<! fileContent=`cat $filename` i= for line in $fileContent do fileList[$i]=$line ((++i)) done ! (2) 使用语句 if false then fi echo "
前言 编写python程序有时候需要对代码块进行comment,本文对此介绍. 方法 python注释的三种方法: 1.井号注释单行代码: # 2.三个单引号或三个双引号注释语句块: ''' 或者" " " 3.井号加两个百分号画出语句块分界线: #%% 代码 ''' #data.csv is created by make_data.py data=pd.read_csv('data.csv') ''' #get X and y X=data.iloc[:,:-1].val
Comments 注释简介 Let's take a quick break from programming and talk about comments. Comments help programmers understand what exactly the computer program does. Comments are also a short summary of your computer program. 让我们从编程中快速休息一下,来谈谈注释. 注释帮助程序员了解计算