Python官方文档介绍:Assert是将调试断言插入程序中的一种便捷方式(Assert statements are a convenient way to insert debugging assertions into a program.)。参考文档地址https://docs.python.org/3/reference/simple_stmts.html#assert
执行sh文件时出现-bash: ./wrx_bk.sh: /bin/bash^M: bad interpreter: No such file or directory.查找相关资料得知原来是文件格式问题。dos格式文件传输到unix系统时,会在每行的结尾多一个^M,即dos文件中的换行符“\r\n”会被转换为unix文件中的换行符“\n”。