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進行爬蟲是比較有意思的東西


推薦閱讀:
相關文章