我得到了以下不同的结果:
测试1:
def myblock
x = 1
y = 1
yield(x)
[x, y]
end
myblock do |x|
y = 10
end
# => [1,1]
测试2:
x = 1
y = 1
1.upto(2) do |x|
y = 20
end
[x,y]
# => [1,20]
在块外部创建的变量在块中可用。为甚麽会这样呢?
当我尝试将AMD催化剂安装到我的Kali Linux2.0中时,详情如下
root@blackbox:~/Downloads/fglrx-15.302# uname -a
Linux blackbox 4.9.0-kali3-amd64 #1 SMP Debian 4.9.13-1kali3 (2017-03-13) x86_64 GNU/Linux
我得到以下错误。
error: Detected X Server version 'XServer 1.19.2_64a' is not supported. Supported versions are X.Org 6.9 o