• ipython又一方便的调试和应用工具!!!


    控制台下://ipython 命令丰富 比如:ls 显示目录
     ipython --pylab
    %run -p *.py
    quit关闭
     
     
    示例:
    In [7]: %run -p test.py
    3
    Hello World!
             51 function calls in 0.004 seconds
    
       Ordered by: internal time
    
       ncalls  tottime  percall  cumtime  percall filename:lineno(function)
            1    0.002    0.002    0.004    0.004 test.py:1(<module>)
            1    0.001    0.001    0.001    0.001 test.py:1(foo)
            2    0.000    0.000    0.000    0.000 {open}
            1    0.000    0.000    0.000    0.000 {compile}
            1    0.000    0.000    0.004    0.004 interactiveshell.py:2443(safe_execfile)
            1    0.000    0.000    0.000    0.000 {method 'read' of 'file' objects}
            1    0.000    0.000    0.004    0.004 py3compat.py:268(execfile)
            1    0.000    0.000    0.000    0.000 ntpath.py:415(normpath)
            2    0.000    0.000    0.000    0.000 ntpath.py:96(splitdrive)
            2    0.000    0.000    0.000    0.000 {method 'encode' of 'unicode' objects}
            1    0.000    0.000    0.000    0.000 syspathcontext.py:64(__exit__)
            1    0.000    0.000    0.000    0.000 ntpath.py:174(split)
            1    0.000    0.000    0.004    0.004 <string>:1(<module>)
            1    0.000    0.000    0.000    0.000 syspathcontext.py:57(__enter__)
            1    0.000    0.000    0.000    0.000 ntpath.py:213(dirname)
            2    0.000    0.000    0.000    0.000 py3compat.py:19(encode)
            1    0.000    0.000    0.000    0.000 syspathcontext.py:54(__init__)
            1    0.000    0.000    0.000    0.000 ntpath.py:483(abspath)
            1    0.000    0.000    0.000    0.000 py3compat.py:29(cast_bytes)
            1    0.000    0.000    0.000    0.000 {nt._getfullpathname}
            2    0.000    0.000    0.000    0.000 {method 'startswith' of 'unicode' objects}
            1    0.000    0.000    0.000    0.000 {method 'remove' of 'list' objects}
            1    0.000    0.000    0.000    0.000 ntpath.py:285(expanduser)
            3    0.000    0.000    0.000    0.000 {method 'replace' of 'unicode' objects}
            8    0.000    0.000    0.000    0.000 {len}
            1    0.000    0.000    0.000    0.000 {method 'join' of 'unicode' objects}
    ---Return to continue, q to quit---
     
  • 相关阅读:
    [日常工作] cmd以及bash 直接使用当前目录的方法
    [安全] 公司局域网病毒处理
    SQLserver 使用网络驱动器恢复数据库
    MiniDP与HDMI的关系
    Win10删除微软拼音输入法的方法
    SQLSERVER case when 的学习
    [日常工作]偷懒创建一个存储过程进行模拟工作.
    oracle 18c centos7 设置开机自动启动Oracle
    kali linux升级
    [日常工作]Oracle新增数据文件的小知识点
  • 原文地址:https://www.cnblogs.com/learn-to-rock/p/5447930.html
Copyright © 2020-2023  润新知