• Python 可视化 | Seaborn5 分钟入门 (一)——kdeplot 和 distplot at 8个月前

    这怎么问题

    λ ipython
    Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)]
    Type 'copyright', 'credits' or 'license' for more information
    IPython 7.4.0 -- An enhanced Interactive Python. Type '?' for help.
    
    In [1]: %matplotlib inline
    ---------------------------------------------------------------------------
    UnknownBackend                            Traceback (most recent call last)
    <ipython-input-1-9e3324102725> in <module>
    ----> 1 get_ipython().run_line_magic('matplotlib', 'inline')
    
    d:\python\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
       2305                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
       2306             with self.builtin_trap:
    -> 2307                 result = fn(*args, **kwargs)
       2308             return result
       2309
    
    <decorator-gen-109> in matplotlib(self, line)
    
    d:\python\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
        185     # but it's overkill for just that one bit of state.
        186     def magic_deco(arg):
    --> 187         call = lambda f, *a, **k: f(*a, **k)
        188
        189         if callable(arg):
    
    d:\python\lib\site-packages\IPython\core\magics\pylab.py in matplotlib(self, line)
         97             print("Available matplotlib backends: %s" % backends_list)
         98         else:
    ---> 99             gui, backend = self.shell.enable_matplotlib(args.gui)
        100             self._show_matplotlib_backend(args.gui, backend)
        101
    
    d:\python\lib\site-packages\IPython\core\interactiveshell.py in enable_matplotlib(self, gui)
       3387         # Now we must activate the gui pylab wants to use, and fix %run to take
       3388         # plot updates into account
    -> 3389         self.enable_gui(gui)
       3390         self.magics_manager.registry['ExecutionMagics'].default_runner = \
       3391             pt.mpl_runner(self.safe_execfile)
    
    d:\python\lib\site-packages\IPython\terminal\interactiveshell.py in enable_gui(self, gui)
        517         if gui:
        518             self.active_eventloop, self._inputhook =\
    --> 519                 get_inputhook_name_and_func(gui)
        520         else:
        521             self.active_eventloop = self._inputhook = None
    
    d:\python\lib\site-packages\IPython\terminal\pt_inputhooks\__init__.py in get_inputhook_name_and_func(gui)
         36
         37     if gui not in backends:
    ---> 38         raise UnknownBackend(gui)
         39
         40     if gui in aliases:
    
    UnknownBackend: No event loop integration for 'inline'. Supported event loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx
    
  • 想省钱的兄弟们,可以试试谷歌的云服务器 at 8个月前

    没有信用卡怎么办

    file

  • PHP 命名空间 at 8个月前

    怎么觉得好复杂

  • 社区里有没有想考公务员的,聊聊 at 8个月前
    @Artist0618 大佬有什么备考计划,应该比高考难吧
  • Go 与 PHP 的语法对比 at 8个月前

    对比很形象,不过go里if for 不加()很别扭

    还有字符串只能用双引号,不能用单引号。。。

  • ThinkPHP5.1 中的数据库迁移和数据填充 at 8个月前

    跟laravel神似

  • 国内用户 Line 的注册以及使用一站式教程 at 8个月前

    注册Facebook是不还得手机号

  • Eloquent 技巧分享:使用布尔值来作为 Group By Raw 条件 at 8个月前

    YEAR(birth_date) < 2001 还可以这样

  • bcadd 的精度问题? at 8个月前

    文档里写的参数为字符串类型 https://www.php.net/manual/zh/function.bca...

    file

  • Go - 如何解析 JSON 数据? at 8个月前

    还是PHP json_decode方便

  • Mac 编译安装 PHPRedis 模块 at 8个月前
    @alalala
  • Mac 编译安装 PHPRedis 模块 at 8个月前

    为什么失败呢

    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    
    Build complete.
    Don't forget to run 'make test'.
    
    Installing shared extensions:     /usr/lib64/php/modules/
    [root@VM_0_11_centos phpredis]# php --ini
    Configuration File (php.ini) Path: /etc
    Loaded Configuration File:         /etc/php.ini
    Scan for additional .ini files in: /etc/php.d
    修改php.ini
    [root@VM_0_11_centos phpredis]# grep redis /etc/php.ini
    extension=/usr/lib64/php/modules/redis.so
    [root@VM_0_11_centos phpredis]# php -m
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/redis.so' (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: undefined symbol: php_json_decode_ex), /usr/lib64/php/modules//usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules//usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
  • 导出处理耗时的文件 at 8个月前

    导出CSV格式可以直接用Excel打开

  • Markdown 基本语法 at 8个月前

    特殊符号还真没用过
    © 这些符号哪里有

  • 一行式 at 8个月前
    >>> a_list = [[1, 2], [3, 4], [5, 6]]
    >>> sum(a_list,[])
    [1, 2, 3, 4, 5, 6]