MySQL必知應會 雲圖

來源:互聯網
上載者:User

標籤:視圖   plot   字型   mon   bsp   UNC   dom   dict   背景   

圖書封面

目錄

本書的讀者對象是這樣一些人:

  • 他沒有學過SQL;
  • 他剛開始用MySQL,並希望一舉成功;
  • 他想迅速地、儘可能多地學會使用MySQL;
  • 他希望學習怎樣在自己的應用程式開發中使用MySQL;
  • 他希望通過使用MySQL輕鬆快速地提高工作效率,而不用勞煩他人幫忙。

目 錄
第1章 瞭解SQL
第2章 MySQL簡介
第3章 使用MySQL
第4章 檢索資料
第5章 排序檢索資料
第6章 過濾資料
第7章 資料過濾
第8章 用萬用字元進行過濾
第9章 用Regex進行搜尋
第10章 建立計算欄位
第11章 使用資料處理函數
第12章 摘要資料
第13章 分組資料
第14章 使用子查詢
第15章 連接表
第16章 建立進階連接
第17章 組合查詢
第18章 全文本搜尋
第19章 插入資料
第20章 更新和刪除資料
第21章 建立和操縱表
第22章 使用視圖
第23章 使用預存程序
第24章 使用遊標
第25章 使用觸發器
第26章 管理交易處理
第27章 全球化和本地化
第28章 安全管理
第29章 資料庫維護
第30章 改善效能
附錄A MySQL入門
附錄B 範例表
附錄C MySQL語句的文法
附錄D MySQL資料類型
附錄E MySQL保留字

雲圖

代碼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from collections import Counter
from zhon import hanzi
import string
import re
import os
import matplotlib.pyplot as plt
import jieba
from wordcloud import WordCloud, ImageColorGenerator

with open(‘mysql必知應會.txt‘,‘r‘, encoding=‘utf-8‘) as fp:
alltext = ‘ ‘.join(fp.readlines())

alltext = re.sub("[%s]+" % hanzi.punctuation, " ", alltext)
alltext = re.sub("[%s]+" % string.punctuation, " ", alltext)

seg_list = jieba.cut(alltext, cut_all=False)
seg_list = list(seg_list)

counter = Counter(seg_list)
top = counter.most_common(1000)

top_dict = dict(top)

stopwords_list = []
pwd = os.path.abspath(‘.‘)
for file in os.listdir(os.path.join(pwd,‘stopwords‘)):
filename = os.path.join(pwd,‘stopwords‘,file)
with open(filename,‘r‘) as fp:
stopwords_list.extend(fp.readlines())

stopwords_list = list(set(stopwords_list))

for stopword in stopwords_list:
try:
top_dict.pop(stopword.strip())
except:
pass

wc = WordCloud(background_color="white", #背景顏色max_words=2000,# 詞雲顯示的最大詞數
font_path=‘simfang.ttf‘,
max_font_size=50, #字型最大值
random_state=42)

wc.generate_from_frequencies(top_dict)

plt.imshow(wc)
plt.axis(‘off‘)

plt.show()

MySQL必知應會 雲圖

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.