RemoveCommon

实现批量删除 python java C CPP JS CSS html xml php sql 注释

GPL-3.0 License

Stars
8

RemoveCommon

python java C CPP JS CSS html xml php sql

Python

Python

Python #

# 
print("Hello, World!")
 '''  """ :
  • '''
#!/usr/bin/python3 
'''

 

'''
print("Hello, World!")
  • """
#!/usr/bin/python3 
"""

 

"""
print("Hello, World!")

java

// 
/*
... ....
... ....
... ....
*/
import java.io.*;
 
/**
* 
* @author Ayan Amhed
* @version 1.2
*/
public class SquareNum {
   /**
   * This method returns the square of num.
   * This is a multiline description. You can use
   * as many lines as you like.
   * @param num The value to be squared.
   * @return num squared.
   */
   public double square(double num) {
      return num * num;
   }
   /**
   * This method inputs a number from the user.
   * @return The value input as a double.
   * @exception IOException On input error.
   * @see IOException
   */
   public double getNumber() throws IOException {
      InputStreamReader isr = new InputStreamReader(System.in);
      BufferedReader inData = new BufferedReader(isr);
      String str;
      str = inData.readLine();
      return (new Double(str)).doubleValue();
   }
   /**
   * This method demonstrates square().
   * @param args Unused.
   * @return Nothing.
   * @exception IOException On input error.
   * @see IOException
   */
   public static void main(String args[]) throws IOException
   {
      SquareNum ob = new SquareNum();
      double val;
      System.out.println("Enter value to be squared: ");
      val = ob.getNumber();
      val = ob.square(val);
      System.out.println("Squared value is " + val);
   }
}

C

  • //
const double pi = 3.1415926536;       // pi
  • /**/
int open( const char *name, int mode,  /* int permissions */ );

html

<!---->

<p></p>

php

  • //
// 
 # 
  • /* */
/*



*/