import antigravity

这行代码会直接跳转到漫画网页 xkcd。


第一反应是Python的神奇,在这里分享一个库,链接微信的桥梁--itchat库,十分神奇,感兴趣的小伙伴可以去玩玩,代码给分享给大家:

1、20行代码带你打造一个微信聊天机器人(附代码)

2、如何利用Python网路爬虫爬取微信朋友圈动态--附代码(下)

3、如何利用Python词云和wordart可视化工具对朋友圈数据进行可视化展示

4、如何利用Python网路爬虫抓取微信好友数量以及微信好友的男女比例

5、利用Python网路爬虫抓取微信好友的所在省位和城市分布及其可视化

6、利用Python网路爬虫抓取微信好友的签名及其可视化展示


python是一个优雅有趣的语言,人生苦短,做软体测试还是选Python。

1、列印一个大大的爱心吧。

print(
.join([.join([(ZhuoChongR[(x-y)%10]if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3&<=0 else )for x in range(-30,30)])for y in range(15,-15,-1)]))

2、一句代码,开启看漫画模式怎么样!

import antigravity

3、动态列印一个雪花怎么样,挺好玩的

from turtle import Turtle
t = Turtle()
t.speed(0)
#a = 180
b = 180
for c in range(5):
a = 9*c
for i in range(100):
t.circle(i,a)
t.right(b)
t.circle(i,a)
t.right(b)
t.circle(i,a)
t.right(b)
t.circle(i,a)
input(Press any key to continue...)


import this

The Zen of Python, by Tim Peters

Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than nested.

Sparse is better than dense.

Readability counts.Special cases arent special enough to break the rules.Although practicality beats purity.Errors should never pass silently.Unless explicitly silenced.In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it.Although that way may not be obvious at first unless youre Dutch.Now is better than never.Although never is often better than right now.

If the implementation is hard to explain, its a bad idea.

If the implementation is easy to explain, it may be a good idea.Namespaces are one honking great idea -- lets do more of those!

学习Python 有很多的有意思的代码

1.爬虫,简单的入门爬虫程序。就是一个request 而已。

2.微信小程序跳一跳

3.图像识别,百度搜索识别后的文字并检索

3.答题程序


我感觉 用python进行爬虫是比较有意思的东西


推荐阅读:
相关文章