计算机语言注释符号大全

< 原文链接:http://wncbl.cn/posts/bc0d01f1/

语言名称 单行注释 多行注释 扩展名
java // /*...*/ .java
C // /*...*/ .c / .h
C++ // /*...*/ .cpp / .h
C# // /*...*/ .cs
Python # /*...*/ .py
PHP # or // /*...*/ .php
VB.NET ' none .vb
JavaScript // /*...*/ .js
Assembly language ; none .asm
Ruby # =begin ... =end .rb
Perl # none .pm
Delphi // {...} .dpr / .dfm /.pas / .cfg / .dof / .res / .ddp/
VB ' none .bas
Swift // /*...*/ .swift
Groovy // /*...*/ .groovy
Objective-C // none .m / .mm
R # none .r
SQL -- /*...*/ .sql
HTML none <!--...--> .html / .html
ASP ' none .asp
CSS /*...*/ none .css
原文地址:https://www.cnblogs.com/rousi/p/5880684.html