讲笑话的示例包

FunnyBonesProject的Python项目详细描述


Author:Abhijit Baxi
Contact:baxiabhijit@gmail.com
Authors:Abhijit Baxi
Organization:Baxi Developers
Date:2016-03-07
Status:This is a “work in progress”
Revision:7302
Version:1.0.2
Copyright:This document has been placed in the public domain. You may do with it as you wish. You may copy, modify, redistribute, reattribute, sell, buy, rent, lease, destroy, or improve it, quote it at length, excerpt, incorporate, collate, fold, staple, or mutilate it, or do anything else to it that your or anyone else’s heart desires.
About:This is a simple project which tells a joke.

奉献精神

谢谢Stack Overflow教我如何使用这个。 链接:http://stackoverflow.com/questions/4155914/how-to-create-a-python-2-x-package-simple-case 原作者:Marius Gedminas

摘要

本文是Funnybone项目的演示。

安装

pip install FunnyBonesProject

  • 升级
    • pip install --upgrade FunnyBonesProject

用法

在python shell中,键入以下内容:

>>> from Jokes import *
>>>
>>> funnyJoke = get_a_joke()
>>> print funnyJoke
Brian’s stress level was at unsurpassed levels. His wife Maggie was in labor and Brian was sure it was time to head to the hospital. Breathing heavily, Brian grabbed the phone and called the doctor. “MY WIFE, SHE’S READY, SHOULD WE COME?” The doctor tried to relax the poor fellow, “just try to relax, now tell me how much time elapses between the contractions?” “SHIRLEY!” Brian screamed on the top of his lungs, “HOW MUCH TIME IN BETWEEN THE CONTRACTIONS? TEN MINUTES? OK, TEN MINUTES IN BETWEEN!” “And is this her first child?” Questioned the doctor. “NO YOU STUPID NITWIT, THIS IS HER HUSBAND!”

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java gradle无法解析配置的任何依赖项:类路径   来自远程服务的java错误字符串解析   java如何在Tomcat之外运行TomcatSpring/Struts 2Quartz任务?   将Java字节转换为Perl   Java选项:返回值或执行某些操作并继续循环   java如何从对象中获取变量?   postgresql自动部署web服务java和glassfish服务器4.1.1?   使用泛型的java Resteasy重写方法   在另一个用户登录后显示上一个用户的java数据   JSP(Java):编码字节数组并在JavaScript中使用,与C中相同#   Java:如何知道jar在Linux中的位置   java模拟已标记为可访问的私有方法的返回值   java无法理解滚动窗格   java Spring Boot Starter Web依赖项提供缺少工件的错误   java从SQL表创建json文件,然后能够查询该文件   java线程时钟对象   Java实践编程问题   多线程Java GUI未更改   GL30库中不存在intellij idea GLGEnVertexArray()。(JAVA LWJGL)   二进制文件在java中编辑二进制文件