小编Niy*_*n C的帖子

git安装错误缺少安装候选

我尝试git使用命令在 Ubuntu 12.10 上安装sudo apt-get install git。但我收到这样的错误消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'git' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

我该怎么做?

git ubuntu

10
推荐指数
4
解决办法
3万
查看次数

我怎样才能理解.pyc文件内容

我有一个.pyc文件.我需要了解该文件的内容就知道反汇编是如何工作的蟒蛇,即我怎么能产生像输出dis.dis(function).pyc文件内容.

例如

>>> def sqr(x):  
...     return x*x
...
>>> import dis
>>> dis.dis(sqr)
  2           0 LOAD_FAST                0 (x)
              3 LOAD_FAST                0 (x)
              6 BINARY_MULTIPLY     
              7 RETURN_VALUE        
Run Code Online (Sandbox Code Playgroud)

我需要使用该.pyc文件获得这样的输出.

python disassembly pyc python-2.7

7
推荐指数
1
解决办法
6623
查看次数

标签 统计

disassembly ×1

git ×1

pyc ×1

python ×1

python-2.7 ×1

ubuntu ×1