From 2c73522812fdf10d97767245eec29e0725e3cd3d Mon Sep 17 00:00:00 2001 From: bamboo Date: Sat, 14 Sep 2019 00:59:41 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E3=80=901901010132=E3=80=91=E8=87=AA?= =?UTF-8?q?=E5=AD=A6=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E4=B9=A02?= =?UTF-8?q?=E7=BE=A4=20DAY9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @liujiayi0042 作业已完成 --- exercises/1901010132/day9/main.py | 8 ++++ .../1901010132/day9/mymodule/stats_word.py | 42 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 exercises/1901010132/day9/main.py create mode 100644 exercises/1901010132/day9/mymodule/stats_word.py diff --git a/exercises/1901010132/day9/main.py b/exercises/1901010132/day9/main.py new file mode 100644 index 000000000..e2040b402 --- /dev/null +++ b/exercises/1901010132/day9/main.py @@ -0,0 +1,8 @@ +from mymodule import stats_word +import json + +with open(r'\Users\Administrator\Documents\GitHub\selfteaching-python-camp\exercises\1901010132\day9\tang300.json',encoding='UTF-8') as f: + text=f.read() + + +stats_word.stats_text_cn(text, 100) \ No newline at end of file diff --git a/exercises/1901010132/day9/mymodule/stats_word.py b/exercises/1901010132/day9/mymodule/stats_word.py new file mode 100644 index 000000000..7a3c0ab41 --- /dev/null +++ b/exercises/1901010132/day9/mymodule/stats_word.py @@ -0,0 +1,42 @@ +text= ''' +"Her eyes beginning to water, she went on, +"So I would like you all to make me a promise: +from now on, on your way to school, +or on your way home, find something beautiful +to notice. It doesn' t have to be something you +see -it could be a scent perhaps of freshly +baked bread wafting out of someone 's house, +or it could be the sound of the breeze +slightly rustling the leaves in the trees, +or the way the morning light catches one +autumn leaf as it falls gently to the ground. +Please, look for these things, and remember them." +  她的眼睛开始湿润了,她接着说因此我想让你们每个人答应我: +从今以后,在你上学或者放学的路上,要发现一些美丽的事物。 +它不一定是你看到的某个东西——它可能是一种香味—— +也许是新鲜烤面包的味道从某一座房里飘出来,也许是微风轻拂树叶的声音, +或者是晨光照射在轻轻飘落的秋叶上的方式。请你们寻找这些东西并且记住它们吧。 +''' +import re +import collections +count=int() +def stats_text_en(text,count): + if type(text)!=str: + raise ValueError("文本为非字符串") + text=re.sub('[^a-zA-Z]','',text.strip()) #表示所有非英文字母 + text=text.split() + print(collections.Counter(text).most_common(count)) + +def stats_text_cn(text,count): #定义检索中文函数 + if type(text)!=str: + raise ValueError("文本为非字符串") + text=re.sub('[^\u4e00-\u9fa5]','',text) #[^\u4e00-\u9fa5]表示所有非中文 + text=' '.join(text) + text=text.split() + print(collections.Counter(text).most_common(count)) + +def stats_word(text,count): #定义函数,实现统计汉字和英文单词出现次数 + if type(text)!=str: + raise ValueError("文本为非字符串") + stats_text_en(text,count) + stats_text_cn(text,count) From eaed52c9c708e2e40ce95700fc2bfa18b009a291 Mon Sep 17 00:00:00 2001 From: bamboo Date: Sun, 15 Sep 2019 19:03:45 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E3=80=901901010132=E3=80=91=E8=87=AA?= =?UTF-8?q?=E5=AD=A6=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E4=B9=A02?= =?UTF-8?q?=E7=BE=A4=20DAY10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @liujiayi0042 作业已完成 --- exercises/1901010132/day10/main.py | 9 ++++ .../1901010132/day10/mymodule/stats_word.py | 50 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 exercises/1901010132/day10/main.py create mode 100644 exercises/1901010132/day10/mymodule/stats_word.py diff --git a/exercises/1901010132/day10/main.py b/exercises/1901010132/day10/main.py new file mode 100644 index 000000000..beaccbf9d --- /dev/null +++ b/exercises/1901010132/day10/main.py @@ -0,0 +1,9 @@ +from mymodule import stats_word +import json + +with open(r'\Users\Administrator\Documents\GitHub\selfteaching-python-camp\exercises\1901010132\day10\tang300.json',encoding='UTF-8') as f: + read_date = f.read() +try: + print('统计前20的词频数: \n',stats_word.stats_text_cn(read_date,20)) +except ValueError as e: + print(e) \ No newline at end of file diff --git a/exercises/1901010132/day10/mymodule/stats_word.py b/exercises/1901010132/day10/mymodule/stats_word.py new file mode 100644 index 000000000..699c602ef --- /dev/null +++ b/exercises/1901010132/day10/mymodule/stats_word.py @@ -0,0 +1,50 @@ +text= ''' +"Her eyes beginning to water, she went on, +"So I would like you all to make me a promise: +from now on, on your way to school, +or on your way home, find something beautiful +to notice. It doesn' t have to be something you +see -it could be a scent perhaps of freshly +baked bread wafting out of someone 's house, +or it could be the sound of the breeze +slightly rustling the leaves in the trees, +or the way the morning light catches one +autumn leaf as it falls gently to the ground. +Please, look for these things, and remember them." +  她的眼睛开始湿润了,她接着说因此我想让你们每个人答应我: +从今以后,在你上学或者放学的路上,要发现一些美丽的事物。 +它不一定是你看到的某个东西——它可能是一种香味—— +也许是新鲜烤面包的味道从某一座房里飘出来,也许是微风轻拂树叶的声音, +或者是晨光照射在轻轻飘落的秋叶上的方式。请你们寻找这些东西并且记住它们吧。 +''' +import re +import collections +import jieba #结巴中文分词 +count=int() +def stats_text_en(text,count): + if type(text) == str: + b=re.sub(r'[^A-Za-z]',' ',text) + list1=b.split() + return(collections.Counter(list1).most_common(count)) + else: + raise ValueError('文本为非字符串') + +def stats_text_cn(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + p=re.compile(u'[\u4e00-\u9fa5]') + a=re.findall(p,text) + str2=''.join(a) + seg_list = jieba.cut(str2,cut_all=False) #jieba.cut返回的结构是一个可迭代的生成器generator + newlist=[] + for i in seg_list: + if len(i) >= 2: + newlist.append(i) + return(collections.Counter(newlist).most_common(count)) + +def stats_text(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + stats_text_cn(text,count) + stats_text_en(text,count) +stats_text(text,count) From a101b0a118582b686ee45ff127c0582a3e305bab Mon Sep 17 00:00:00 2001 From: bamboo Date: Tue, 17 Sep 2019 22:55:43 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E3=80=901901010132=E3=80=91=E8=87=AA?= =?UTF-8?q?=E5=AD=A6=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E4=B9=A02?= =?UTF-8?q?=E7=BE=A4=20DAY11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @liujiayi0042 作业已完成 --- exercises/1901010132/day11/main.py | 27 ++++++++++ .../1901010132/day11/mymodule/stats_word.py | 50 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 exercises/1901010132/day11/main.py create mode 100644 exercises/1901010132/day11/mymodule/stats_word.py diff --git a/exercises/1901010132/day11/main.py b/exercises/1901010132/day11/main.py new file mode 100644 index 000000000..c8112f33c --- /dev/null +++ b/exercises/1901010132/day11/main.py @@ -0,0 +1,27 @@ +import requests +import pyquery +from pyquery import PyQuery +from mymodule import stats_word +import getpass +import yagmail +# 抓取网页 +r = requests.get('https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA') + +# 提取正文 +document = PyQuery(r.text) +content = document('#js_content').text() +print(content) + +#词频统计并转为str类型 +#wordString = ''.join(str(i) for i in wordList) +word_list = stats_word.stats_text_cn(content,100) +word_str = str(word_list) #转换成str类型 +print(word_str) + +#发送统计结果到指定邮箱 +sender = input('请输入发件人邮箱:') +psw = getpass.getpass() #授权码 +recipients = input('输入收件人邮箱:') #指定邮箱pythoncamp@163.com +smtp = "smtp.qq.com" #服务器地址 + +yagmail.SMTP(sender,psw,smtp).send(recipients,'【1901010132】自学训练营学习2群DAY11 bamboo',word_str) \ No newline at end of file diff --git a/exercises/1901010132/day11/mymodule/stats_word.py b/exercises/1901010132/day11/mymodule/stats_word.py new file mode 100644 index 000000000..699c602ef --- /dev/null +++ b/exercises/1901010132/day11/mymodule/stats_word.py @@ -0,0 +1,50 @@ +text= ''' +"Her eyes beginning to water, she went on, +"So I would like you all to make me a promise: +from now on, on your way to school, +or on your way home, find something beautiful +to notice. It doesn' t have to be something you +see -it could be a scent perhaps of freshly +baked bread wafting out of someone 's house, +or it could be the sound of the breeze +slightly rustling the leaves in the trees, +or the way the morning light catches one +autumn leaf as it falls gently to the ground. +Please, look for these things, and remember them." +  她的眼睛开始湿润了,她接着说因此我想让你们每个人答应我: +从今以后,在你上学或者放学的路上,要发现一些美丽的事物。 +它不一定是你看到的某个东西——它可能是一种香味—— +也许是新鲜烤面包的味道从某一座房里飘出来,也许是微风轻拂树叶的声音, +或者是晨光照射在轻轻飘落的秋叶上的方式。请你们寻找这些东西并且记住它们吧。 +''' +import re +import collections +import jieba #结巴中文分词 +count=int() +def stats_text_en(text,count): + if type(text) == str: + b=re.sub(r'[^A-Za-z]',' ',text) + list1=b.split() + return(collections.Counter(list1).most_common(count)) + else: + raise ValueError('文本为非字符串') + +def stats_text_cn(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + p=re.compile(u'[\u4e00-\u9fa5]') + a=re.findall(p,text) + str2=''.join(a) + seg_list = jieba.cut(str2,cut_all=False) #jieba.cut返回的结构是一个可迭代的生成器generator + newlist=[] + for i in seg_list: + if len(i) >= 2: + newlist.append(i) + return(collections.Counter(newlist).most_common(count)) + +def stats_text(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + stats_text_cn(text,count) + stats_text_en(text,count) +stats_text(text,count) From e10da68ab1b3379b6a87adf2c277d4641722aa38 Mon Sep 17 00:00:00 2001 From: bamboo Date: Mon, 23 Sep 2019 21:44:21 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E3=80=901901010132=E3=80=91=E8=87=AA?= =?UTF-8?q?=E5=AD=A6=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E4=B9=A02?= =?UTF-8?q?=E7=BE=A4=20DAY12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @liujiayi0042 作业已完成 --- exercises/1901010132/day12/main.py | 21 ++++++++ .../1901010132/day12/mymodule/stats_word.py | 50 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 exercises/1901010132/day12/main.py create mode 100644 exercises/1901010132/day12/mymodule/stats_word.py diff --git a/exercises/1901010132/day12/main.py b/exercises/1901010132/day12/main.py new file mode 100644 index 000000000..692dbac6d --- /dev/null +++ b/exercises/1901010132/day12/main.py @@ -0,0 +1,21 @@ +import requests +from pyquery import PyQuery +from mymodule import stats_word +from wxpy import Bot,Message,embed +#初始化机器人,扫码登陆 +bot = Bot() +#找到好友 +my_friend = bot.friends().search('PrincessAKing')[0] +#发送文本给好友 +my_friend.send('分享任意微信文章给我') +#监听消息 +#回复my_friend的消息 +@bot.register(my_friend) +def reply_my_friend(msg): + if msg.type == 'Sharing': + response = requests.get(msg.url) + document = PyQuery(response.text) + content = document('#js_content').text() + reply = stats_word.stats_text_cn(content,100) + return reply +embed() diff --git a/exercises/1901010132/day12/mymodule/stats_word.py b/exercises/1901010132/day12/mymodule/stats_word.py new file mode 100644 index 000000000..699c602ef --- /dev/null +++ b/exercises/1901010132/day12/mymodule/stats_word.py @@ -0,0 +1,50 @@ +text= ''' +"Her eyes beginning to water, she went on, +"So I would like you all to make me a promise: +from now on, on your way to school, +or on your way home, find something beautiful +to notice. It doesn' t have to be something you +see -it could be a scent perhaps of freshly +baked bread wafting out of someone 's house, +or it could be the sound of the breeze +slightly rustling the leaves in the trees, +or the way the morning light catches one +autumn leaf as it falls gently to the ground. +Please, look for these things, and remember them." +  她的眼睛开始湿润了,她接着说因此我想让你们每个人答应我: +从今以后,在你上学或者放学的路上,要发现一些美丽的事物。 +它不一定是你看到的某个东西——它可能是一种香味—— +也许是新鲜烤面包的味道从某一座房里飘出来,也许是微风轻拂树叶的声音, +或者是晨光照射在轻轻飘落的秋叶上的方式。请你们寻找这些东西并且记住它们吧。 +''' +import re +import collections +import jieba #结巴中文分词 +count=int() +def stats_text_en(text,count): + if type(text) == str: + b=re.sub(r'[^A-Za-z]',' ',text) + list1=b.split() + return(collections.Counter(list1).most_common(count)) + else: + raise ValueError('文本为非字符串') + +def stats_text_cn(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + p=re.compile(u'[\u4e00-\u9fa5]') + a=re.findall(p,text) + str2=''.join(a) + seg_list = jieba.cut(str2,cut_all=False) #jieba.cut返回的结构是一个可迭代的生成器generator + newlist=[] + for i in seg_list: + if len(i) >= 2: + newlist.append(i) + return(collections.Counter(newlist).most_common(count)) + +def stats_text(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + stats_text_cn(text,count) + stats_text_en(text,count) +stats_text(text,count) From e922beafc29cf5ea5a808b0a3c042c3a5e6a6e59 Mon Sep 17 00:00:00 2001 From: z47288 <48879194+z47288@users.noreply.github.com> Date: Mon, 18 Nov 2019 23:04:54 +0800 Subject: [PATCH 5/7] =?UTF-8?q?Revert=20"=E3=80=901901010132=E3=80=91?= =?UTF-8?q?=E8=87=AA=E5=AD=A6=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?2=E7=BE=A4=20DAY11"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a101b0a118582b686ee45ff127c0582a3e305bab. --- exercises/1901010132/day11/main.py | 27 ---------- .../1901010132/day11/mymodule/stats_word.py | 50 ------------------- 2 files changed, 77 deletions(-) delete mode 100644 exercises/1901010132/day11/main.py delete mode 100644 exercises/1901010132/day11/mymodule/stats_word.py diff --git a/exercises/1901010132/day11/main.py b/exercises/1901010132/day11/main.py deleted file mode 100644 index c8112f33c..000000000 --- a/exercises/1901010132/day11/main.py +++ /dev/null @@ -1,27 +0,0 @@ -import requests -import pyquery -from pyquery import PyQuery -from mymodule import stats_word -import getpass -import yagmail -# 抓取网页 -r = requests.get('https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA') - -# 提取正文 -document = PyQuery(r.text) -content = document('#js_content').text() -print(content) - -#词频统计并转为str类型 -#wordString = ''.join(str(i) for i in wordList) -word_list = stats_word.stats_text_cn(content,100) -word_str = str(word_list) #转换成str类型 -print(word_str) - -#发送统计结果到指定邮箱 -sender = input('请输入发件人邮箱:') -psw = getpass.getpass() #授权码 -recipients = input('输入收件人邮箱:') #指定邮箱pythoncamp@163.com -smtp = "smtp.qq.com" #服务器地址 - -yagmail.SMTP(sender,psw,smtp).send(recipients,'【1901010132】自学训练营学习2群DAY11 bamboo',word_str) \ No newline at end of file diff --git a/exercises/1901010132/day11/mymodule/stats_word.py b/exercises/1901010132/day11/mymodule/stats_word.py deleted file mode 100644 index 699c602ef..000000000 --- a/exercises/1901010132/day11/mymodule/stats_word.py +++ /dev/null @@ -1,50 +0,0 @@ -text= ''' -"Her eyes beginning to water, she went on, -"So I would like you all to make me a promise: -from now on, on your way to school, -or on your way home, find something beautiful -to notice. It doesn' t have to be something you -see -it could be a scent perhaps of freshly -baked bread wafting out of someone 's house, -or it could be the sound of the breeze -slightly rustling the leaves in the trees, -or the way the morning light catches one -autumn leaf as it falls gently to the ground. -Please, look for these things, and remember them." -  她的眼睛开始湿润了,她接着说因此我想让你们每个人答应我: -从今以后,在你上学或者放学的路上,要发现一些美丽的事物。 -它不一定是你看到的某个东西——它可能是一种香味—— -也许是新鲜烤面包的味道从某一座房里飘出来,也许是微风轻拂树叶的声音, -或者是晨光照射在轻轻飘落的秋叶上的方式。请你们寻找这些东西并且记住它们吧。 -''' -import re -import collections -import jieba #结巴中文分词 -count=int() -def stats_text_en(text,count): - if type(text) == str: - b=re.sub(r'[^A-Za-z]',' ',text) - list1=b.split() - return(collections.Counter(list1).most_common(count)) - else: - raise ValueError('文本为非字符串') - -def stats_text_cn(text,count): - if not isinstance(text,str): - raise ValueError('文本为非字符串') - p=re.compile(u'[\u4e00-\u9fa5]') - a=re.findall(p,text) - str2=''.join(a) - seg_list = jieba.cut(str2,cut_all=False) #jieba.cut返回的结构是一个可迭代的生成器generator - newlist=[] - for i in seg_list: - if len(i) >= 2: - newlist.append(i) - return(collections.Counter(newlist).most_common(count)) - -def stats_text(text,count): - if not isinstance(text,str): - raise ValueError('文本为非字符串') - stats_text_cn(text,count) - stats_text_en(text,count) -stats_text(text,count) From 546417a6607b79d58c221cf25f7bf99f0c5038f8 Mon Sep 17 00:00:00 2001 From: z47288 <48879194+z47288@users.noreply.github.com> Date: Wed, 20 Nov 2019 22:05:56 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E3=80=901901010132=E3=80=91=E8=87=AA?= =?UTF-8?q?=E5=AD=A6=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E4=B9=A02?= =?UTF-8?q?=E7=BE=A4=20DAY13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @liujiayi0042 作业已完成 --- exercises/1901010132/day13/main.py | 33 ++++++++++++ .../1901010132/day13/mymodule/stats_word.py | 50 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 exercises/1901010132/day13/main.py create mode 100644 exercises/1901010132/day13/mymodule/stats_word.py diff --git a/exercises/1901010132/day13/main.py b/exercises/1901010132/day13/main.py new file mode 100644 index 000000000..eae28f91c --- /dev/null +++ b/exercises/1901010132/day13/main.py @@ -0,0 +1,33 @@ +from wxpy import Bot,Message,embed + +bot = Bot() +#找到好友 +my_friend = bot.friends().search('PrincessAKing')[0] +#预先注册,利用Bot.register()完成 +#Bot.register(chats=None,msg_types=None,except_self=True,run_async=True,enable=True) +@bot.register(chats = my_friend,msg_types = 'Sharing',except_self = True) +def auto_reply(msg): + import requests + from pyquery import PyQuery +#r = requests.get('https://api.github.com/user', auth=('user', 'pass')) 官方事例 + response = requests.get(msg.url) + document = PyQuery(response.text) + content = document('#js_content').text() + from mymodule.stats_word import stats_text as a + msg1 = dict(a(content,20)) + + import numpy as np + import matplotlib.pyplot as plt + import matplotlib.font_manager as fm + import pandas as pd + from pandas import DataFrame,Series + plt.rcParams['font.sans-serif']=['SimHei'] + group_x = list(msg1.keys()) + group_y = list(msg1.values()) + df = pd.DataFrame(group_y,index = group_x) + df.plot(kind = 'barh') + + plt.savefig('day13.png') + + msg.reply_image('day13.png') +embed() \ No newline at end of file diff --git a/exercises/1901010132/day13/mymodule/stats_word.py b/exercises/1901010132/day13/mymodule/stats_word.py new file mode 100644 index 000000000..699c602ef --- /dev/null +++ b/exercises/1901010132/day13/mymodule/stats_word.py @@ -0,0 +1,50 @@ +text= ''' +"Her eyes beginning to water, she went on, +"So I would like you all to make me a promise: +from now on, on your way to school, +or on your way home, find something beautiful +to notice. It doesn' t have to be something you +see -it could be a scent perhaps of freshly +baked bread wafting out of someone 's house, +or it could be the sound of the breeze +slightly rustling the leaves in the trees, +or the way the morning light catches one +autumn leaf as it falls gently to the ground. +Please, look for these things, and remember them." +  她的眼睛开始湿润了,她接着说因此我想让你们每个人答应我: +从今以后,在你上学或者放学的路上,要发现一些美丽的事物。 +它不一定是你看到的某个东西——它可能是一种香味—— +也许是新鲜烤面包的味道从某一座房里飘出来,也许是微风轻拂树叶的声音, +或者是晨光照射在轻轻飘落的秋叶上的方式。请你们寻找这些东西并且记住它们吧。 +''' +import re +import collections +import jieba #结巴中文分词 +count=int() +def stats_text_en(text,count): + if type(text) == str: + b=re.sub(r'[^A-Za-z]',' ',text) + list1=b.split() + return(collections.Counter(list1).most_common(count)) + else: + raise ValueError('文本为非字符串') + +def stats_text_cn(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + p=re.compile(u'[\u4e00-\u9fa5]') + a=re.findall(p,text) + str2=''.join(a) + seg_list = jieba.cut(str2,cut_all=False) #jieba.cut返回的结构是一个可迭代的生成器generator + newlist=[] + for i in seg_list: + if len(i) >= 2: + newlist.append(i) + return(collections.Counter(newlist).most_common(count)) + +def stats_text(text,count): + if not isinstance(text,str): + raise ValueError('文本为非字符串') + stats_text_cn(text,count) + stats_text_en(text,count) +stats_text(text,count) From 78f14d8c9013fb7ccfe8f9e279b481917d359ef0 Mon Sep 17 00:00:00 2001 From: z47288 <48879194+z47288@users.noreply.github.com> Date: Wed, 4 Dec 2019 01:37:59 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E3=80=901901010132=E3=80=91=E8=87=AA?= =?UTF-8?q?=E5=AD=A6=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E4=B9=A02?= =?UTF-8?q?=E7=BE=A4=20DAY14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @liujiayi0042 作业已完成 --- exercises/1901010132/README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/exercises/1901010132/README.md b/exercises/1901010132/README.md index 56a6051ca..f1ca26a69 100644 --- a/exercises/1901010132/README.md +++ b/exercises/1901010132/README.md @@ -1 +1,16 @@ -1 \ No newline at end of file +自学编程训练营总结 + +自学编程训练营学习内容即将结束了,从最初的抓耳挠腮到现在的熟练应对,当中经历了无数个自我否打与自我鞭策,所谓念念不忘必有回响,只要坚持都会有痕迹留下,当痕迹足够多时离开花结果就不远了。 + +整个学习过程中电脑硬盘问题使系统崩溃了3次,这3次错误差点让我无法继续下去,每一次安装都出现了各种各样的问题,第一次是GitHub Desktop重装Commit failed错误,使用搜索引擎修改config文件解决。另外还碰上了作业clone本地出现fatal: the remote end hung up unexpectedly错误,切换为手机4G网络给解决了。最后一个写完代码调试的时候出现属性“program”不存在错误 ,这个错误至今未能解决,最后没办法借了台电脑完成最后的作业。 + +刚开始报名训练营时我正值数据分析课程助教带班期间,同时公司事务繁多连续加班,感觉自己跟陀螺一样拼命转,每天下班回来就争分夺秒的开电脑。之后又碰到商业分析课的开班,一度学习终止。现在回头看,这些困难都挺过来了,带班的数据分析课学员大部分以优异的成绩毕业,自己参与的商业分析课程也已经获得优秀毕业,现在编程训练营的课程也即将结束了。当经历了各种困难解决之后回过来看,都是满满的成就感,虽然当时被困难折磨的死去活来,觉得随时可能完蛋。在这里想说一句,这种感觉真好。 + +先完成再完美,不能困在问题当中出不来,虽然钻研精神也很重要,但一味的困在一个问题当中,会严重的损失效率,进一步的给自己带来挫败感。一定要给自己一个时间,时间到了之后不管问题有没有解决,暂时搁置问题并且记录下来,然后把学习进度向前推进,去学习其他内容,随着知识容量的扩大和知识点的贯通,可能之前的问题在后面来看已经不是问题了。 + +学习一项新技能其实不难,有时候你之所以觉得难,是因为你在远远的看,而没有让自己身处其中。就拿编程来说,以前的一行行代码摆在自己面前绝对是跟天书一样,现在可能还是跟天书一样,但现在不同的是我可以很自信的对自己说,我可以把他搞懂。拥有自学能力的人就是拥有这种底气。 + +现在每天都在学习新的东西。自从进了笑来老师的践行群,每天的学习根本停不下来。笑来老师和其他老师天天在群里讲课,只能说这2019.74元的入群费太值了。目前python只算是入门,接下来会继续学习践行群里李俊老师的编程课。如果有在践行群里的同学欢迎加我微信hello-say一起交流。 + + +最后要感谢助教大大们和糖总,给予了我很多帮助和鼓励!