"Fossies" - the Fresh Open Source Software Archive

Member "cloc-1.82/tests/inputs/hi.py" (3 May 2019, 263 Bytes) of package /linux/privat/cloc-1.82.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "hi.py": 1.72_vs_1.74.

    1 #/usr/bin/env python
    2 # Works with both 2.x and 3.x versions of Python.
    3 
    4 # pound comment
    5 
    6 import time
    7 print('Hello.  The time is %f Unix epoch.' % (time.time()))  # inline comment
    8 
    9 """
   10 Docstring,
   11   also counted as comment.
   12 """
   13 
   14 '''
   15 Single
   16   Quoted
   17     Docstring'''