1
This commit is contained in:
+16
-9
@@ -12,16 +12,9 @@ if missing:
|
||||
subprocess.check_call([python, '-m', 'pip', 'install', *missing], stdout=subprocess.DEVNULL)
|
||||
|
||||
from rich.console import Console
|
||||
|
||||
console=Console()
|
||||
print=console.log
|
||||
print(
|
||||
{
|
||||
'test1':'tset',
|
||||
'test2':'tset',
|
||||
}
|
||||
)
|
||||
print("test", style="bold white on blue")
|
||||
|
||||
"""
|
||||
import os
|
||||
if __name__ == os.path.splitext(os.path.basename(__file__))[0] or __name__ =='__main__':
|
||||
@@ -32,10 +25,24 @@ print(__file__)
|
||||
print(os.path.basename(__file__))
|
||||
"""
|
||||
|
||||
"""
|
||||
|
||||
print(
|
||||
{
|
||||
'test1':'tset',
|
||||
'test2':'tset',
|
||||
}
|
||||
)
|
||||
print("test", style="bold white on blue")
|
||||
"""
|
||||
|
||||
"""
|
||||
print(__file__)
|
||||
print(os.path.basename(__file__))
|
||||
try:
|
||||
Exception_test()
|
||||
except Exception:
|
||||
#console.print_exception(show_locals=True)
|
||||
console.print_exception()
|
||||
console.print_exception()
|
||||
|
||||
"""
|
||||
Reference in New Issue
Block a user