通过python访问笑话

laugh的Python项目详细描述


通过python访问笑话(或更多)。在

还有什么比。。。 托尔(代表千禧一代),或查克诺里斯(代表X世代)。在

但实际上,你可以选择自己的名字在笑话中使用。在

免责声明:我说的是“笑话”,但不要承诺他们中的任何一个其实很有趣。在

示例

在第一次导入时,它将随机打印一个笑话 取自[api.chucknorris.io接口], 但是用“托尔”代替这个名字,以适应时代的需要。在

>>> import laugh  
Read! its what smart people do! but not Thor. He already is smart enough.

但你可以选择自己的名字来嘲笑。 假设“Chuck Norris”(源数据库中使用的实际原始名称)。在

^{pr2}$

您可以指定一个(单个)单词来过滤随机笑话。在

>>> joke_gen(search_term='airplane') 
MacGyver can build an airplane out of gum and paper clips. Chuck Norris can kill him and take it.

MacGyver can build an airplane out of gum and paper clips, but Chuck Norris can roundhouse-kick his head through a wall and take it.

911 happened when Chuck Norris threw a paper airplane

Chuck Norris never uses parachutes when he skydives out of airplanes because they only slow him down.

Before the Wright brothers made the first airplane, Chuck Norris had already invented the rocket and flown to Pluto, where he lived for 20 years.........naked

Chuck Norris invented airplanes because he was tired of being the only person that could fly.

September 11, 2001- The World Paper Airplane Throwing Championships were held in California...Chuck Norris won when his 4 best throws landed somewhere on the East Coast.

Chuck Norris can fly on an airplane to Maine from Hawaii in 30 seconds. he just has to tell the pilot to move over...

Chuck Norris doesn't use an airplane for travel, he simply turns of the gravity and farts

Chuck Norris dosent use airplanes to get to other countries, he just jumps from one continent to another.

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

推荐PyPI第三方库


热门话题
组合字符串中的java正则表达式数字和点(点)   java有没有办法在CMD中找到命令的映像路径?   java用神经网络对网页进行分类?   java如何在运行时更新bash脚本或轻松重新启动它?   java Android:使用现成的Django数据库?   java在安卓版本9.0中,即使应用程序关闭或打开,我如何能每1分钟触发一次广播?   java Android为Gingebrad提供样式资源   java映射具有NamedNativeQuery和SqlResultSetMapping的任何集合   java如何为任何用户定义的类创建包装类   发生了什么事?当我试图将我的项目从eclipse导入Android Studio时,它就是不能正常运行?   java打开文件名中包含外来字符的文件   java业务层调用业务层或直接调用DAO   java Hashmap put方法不会使用char[][]类型编译吗?   java如何使用Maven创建Stuts2项目   java简单静音问题?   macos OS X gzip是否可以配置为与Java GZIPOutputStream匹配?