Server IP : 15.235.198.142 / Your IP : 216.73.216.32 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/doc/python3-rich/examples/ |
Upload File : |
try: import click except ImportError: print("Please install click for this example") print(" pip install click") exit() from rich.traceback import install install(suppress=[click]) @click.command() @click.option("--count", default=1, help="Number of greetings.") def hello(count): """Simple program that greets NAME for a total of COUNT times.""" 1 / 0 for x in range(count): click.echo(f"Hello {name}!") if __name__ == "__main__": hello()