Search Results

Search found 2 results on 1 pages for 'deqing'.

Page 1/1 | 1 

  • How to install libcrypt-ssleay-perl in Ubuntu?

    - by Deqing
    When I tried to install libcrypt-ssleay-perl, it says: $ sudo apt-get install libcrypt-ssleay-perl Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libcrypt-ssleay-perl : Depends: perlapi-5.12.4 but it is not installable E: Unable to correct problems, you have held broken packages. This perlapi-5.12.4 is actually a virtual package provided by perl-base, which I had already installed: $ dpkg -l|grep perl-base ii perl-base 5.14.2-6ubuntu2.1 minimal Perl system So what should I do to install libcrypt-ssleay-perl now?

    Read the article

  • How does * work in Python

    - by Deqing
    Just switched from C++ to Python, and found that sometimes it is a little hard to understand ideas behind Python. I guess, a variable is a reference to the real object. For example, a=(1,2,5) meaning a - (1,2,5), so if b=a, then b and a are 2 references pointing to the same (1,2,5). It is a little like pointers in C/C++. If I have: def foo(a,b,c): print a,b,c a=(1,3,5) foo(*a) What does * mean here? Looks like it expands tuple a to a[0], a[1] and a[2]. But why print(*a) is not working while print(a[0],a[1],a[2]) works fine?

    Read the article

1