通过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.
- 项目
标签: