在PHP中,可以使用注释来屏蔽一整段代码。注释可以使用/*
和*/
来包围需要屏蔽的代码。例如:
<?php
/*
echo "This code is being commented out.";
echo "This code is also being commented out.";
*/
echo "This code is not being commented out.";
?>
在Python中,可以使用多行字符串来屏蔽一整段代码。多行字符串可以使用三个单引号'''
或三个双引号"""
来包围需要屏蔽的代码。例如:
'''
print("This code is being commented out.")
print("This code is also being commented out.")
'''
print("This code is not being commented out.")
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站