设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 技术文摘 查看内容

Python趣文:Import Girlfriend

2014-1-24 14:45| 发布者: joejoe0332| 查看: 1494| 评论: 0|原作者: 马帅|来自: 伯乐在线

摘要: 如果……你像卡马克一样努力编程然后……你就会赚大钱再然后……你就能买下豪华跑车和别墅而且……你还会有宋慧乔或者苍井空一样的女朋友哦噢,但是……1234567891011felinx@FELINX:~$ sudo easy_install girlfriend ...

  如果……


  你像卡马克一样努力编程



  然后……


  你就会赚大钱



  再然后……


  你就能买下豪华跑车和别墅



 





  而且……


  你还会有宋慧乔



  或者苍井空



 

  一样的女朋友


  哦噢,但是……


1
2
3
4
5
6
7
8
9
10
11
felinx@FELINX:~$ sudo easy_install girlfriends
 
Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import girlfriends
Traceback (most recent call last):
 File "", line 1, in
 File "build/bdist.linux-i686/egg/girlfriends/__init__.py", line 20, in
girlfriends.MoreThanOneGirlfriendIsNotAllowedException
>>>


  如何使用“import girlfriend”


  可能你是通过社交网络或者搜索引擎找到这里的,不过来这里最简单的方法是,在Python里输入“import girlfriend”。当然,在输入这条指令前,你必须先使用“easy_install girlfriend”或者”pip install girlfriend”来安装”girlfriend”模块,安装过程中会为你自动添加“努力工作”、“钱”、“车”和“房”等模块所依赖的包。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
felinx@FELINX:~$ sudo easy_install girlfriend
Searching for girlfriend
Reading http://pypi.python.org/simple/girlfriend/
Reading http://girlfriend.im/
Best match: girlfriend 1.0
Downloading http://pypi.python.org/packages/source/g/girlfriend/girlfriend-1.0.zip#md5=5c71e827fffd78fe7293c74ce165f733
Processing girlfriend-1.0.zip
Running girlfriend-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XOtU9Q/girlfriend-1.0/egg-dist-tmp-pNW2zF
zip_safe flag not set; analyzing archive contents...
Adding girlfriend 1.0 to easy-install.pth file
 
Installed /env/python2.6/lib/python2.6/site-packages/girlfriend-1.0-py2.6.eggGearset365
Downloading http://pypi.python.org/packages/source/h/house/house-1.0.zip#md5=8ff7fd47ebff56c2f3eda9e1d9ecbfe3
Processing house-1.0.zip
Running house-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Tu0zoU/house-1.0/egg-dist-tmp-WCdMyo
zip_safe flag not set; analyzing archive contents...
Adding house 1.0 to easy-install.pth file
 
Installed /env/python2.6/lib/python2.6/site-packages/house-1.0-py2.6.egg
Searching for car>=1.0
Reading http://pypi.python.org/simple/car/
Best match: car 1.0
Downloading http://pypi.python.org/packages/source/c/car/car-1.0.zip#md5=c0fb318a3405b7da143cccfd645b8a69
Processing car-1.0.zip
Running car-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-frOEcA/car-1.0/egg-dist-tmp-ISnChL
zip_safe flag not set; analyzing archive contents...
Adding car 1.0 to easy-install.pth file
 
Installed /env/python2.6/lib/python2.6/site-packages/car-1.0-py2.6.egg
Searching for money>=1.0
Reading http://pypi.python.org/simple/money/
Best match: money 1.0
Downloading http://pypi.python.org/packages/source/m/money/money-1.0.zip#md5=b5eb9601f2680475d6d6710b20ac0fa3
Processing money-1.0.zip
Running money-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JtOEyo/money-1.0/egg-dist-tmp-oYQNbf
zip_safe flag not set; analyzing archive contents...
Adding money 1.0 to easy-install.pth file
 
Installed /env/python2.6/lib/python2.6/site-packages/money-1.0-py2.6.egg
Searching for workhard>=1.0
Reading http://pypi.python.org/simple/workhard/
Best match: workhard 1.0
Downloading http://pypi.python.org/packages/source/w/workhard/workhard-1.0.zip#md5=cf20df6009ebe505e5893a06450955e8
Processing workhard-1.0.zip
Running workhard-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-B1vmVq/workhard-1.0/egg-dist-tmp-GzPMeB
zip_safe flag not set; analyzing archive contents...
Adding workhard 1.0 to easy-install.pth file
 
Installed /env/python2.6/lib/python2.6/site-packages/workhard-1.0-py2.6.egg
Finished processing dependencies for girlfriend

酷毙

雷人
1

鲜花

鸡蛋

漂亮

刚表态过的朋友 (1 人)

  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部