当我在Racket中打印时,只打印结构类型,而不是值.(我在DrRacket工作,在互动区.)
例如,我有一个树结构:
#lang racket
(define-struct node [name left right])
Run Code Online (Sandbox Code Playgroud)
一个例子可能是:
(define SALLY (make-node 'sally BOBBY SUSIE))
(define BOBBY (make-node 'bobby NONE NONE))
(define SUSIE (make-node 'susie NONE NONE))
Run Code Online (Sandbox Code Playgroud)
我所看到的:
> (print SALLY)
#<node>
Run Code Online (Sandbox Code Playgroud)
我想看到的:
> (print SALLY)
(make-node 'sally (make-node 'bobby NONE NONE)
(make-node 'susie NONE NONE))
Run Code Online (Sandbox Code Playgroud)
我怎样才能看到价值而不是类型?
我正在尝试安装一个 python 库 openpyxl。我刚刚在我的 Windows 10 工作计算机上安装了 python 3.6。我的安装尝试结果如下。
我发现了一个相关的问题:pip install and custom index url
如果我的问题是使用代理,我可以做些什么来安装 openpyxl 吗?
C:\Users\00168070>pip install openpyxl
'NewConnectionError>(': 无法建立新连接:[Errno 11002] getaddrinfo failed',)' :/简单/openpyxl/
重试(重试(总计 = 3,连接 = 无,读取 = 无,重定向 = 无))连接被 'NewConnectionError(': 建立新连接失败:[Errno 11002] getaddrinfo failed',)':/simple /openpyxl/
重试(重试(总计 = 2,连接 = 无,读取 = 无,重定向 = 无))连接被 'NewConnectionError(': 建立新连接失败:[Errno 11002] getaddrinfo failed',)':/simple /openpyxl/
重试(重试(总计 = 1,连接 = 无,读取 = 无,重定向 = 无))连接被 'NewConnectionError(': 建立新连接失败:[Errno 11002] getaddrinfo failed',)':/simple /openpyxl/
重试(重试(总计 = 0,连接 = 无,读取 = 无,重定向 …