jquery解析json字符串串异常结尾,在最后一个属性处多个一个, 导致无法解析,求一个正则表达来去掉这个多余的,

&figure&&img src=&https://pic3.zhimg.com/v2-bbd86f63f9e387d42e6d_b.jpg& data-rawwidth=&2000& data-rawheight=&1125& class=&origin_image zh-lightbox-thumb& width=&2000& data-original=&https://pic3.zhimg.com/v2-bbd86f63f9e387d42e6d_r.jpg&&&/figure&&p&语言版本:Python&/p&&p&1、自动登录12306并保持Cookie&/p&&p&2、自动实现抢购设置的某日期的某车次的票&/p&&p&3、攻克排队系统陷阱,避免进入排队系统&/p&&p&4、循环监控某车次的票,直到有票,自动抢购&/p&&p&5、抢票时若出现异常,自动重新抢票,直到成功&/p&&a class=&video-box& href=&http://link.zhihu.com/?target=https%3A//www.zhihu.com/video/605184& target=&_blank& data-video-id=&& data-video-playable=&true& data-name=&& data-poster=&https://pic2.zhimg.com/80/v2-baaa2d39de3ec58b1f3d_b.jpg& data-lens-id=&605184&&
&img class=&thumbnail& src=&https://pic2.zhimg.com/80/v2-baaa2d39de3ec58b1f3d_b.jpg&&&span class=&content&&
&span class=&title&&&span class=&z-ico-extern-gray&&&/span&&span class=&z-ico-extern-blue&&&/span&&/span&
&span class=&url&&&span class=&z-ico-video&&&/span&https://www.zhihu.com/video/605184&/span&
&p&&br&&/p&&p&&b&代码功能:&/b&&br&&/p&&p&1、自动登录12306并保持Cookie&/p&&p&2、自动实现抢购设置的某日期的某车次的票&/p&&p&3、攻克排队系统陷阱,避免进入排队系统(有时系统会把你的票放入排队系统,你需要永无止境的等待,但此代码可以让你避免进入排队系统)&/p&&p&4、循环监控某车次的票,直到有票,自动抢购&/p&&p&5、抢票时若出现异常,自动重新抢票,直到成功&/p&&p&&b&代码语言:&/b&&/p&&p&Python&/p&&p&&b&代码作者:&/b&&/p&&p&韦玮&/p&&p&&b&编写背景:&/b&&/p&&p&该案例本来是我写的一本由清华大学出版社出版的《Python程序设计基础实战教程》书籍里面第13章的内容,后来12306改版后原书中代码就无法运行了,最近五一大家出行较多,于是重新分析并写了一个新版本的代码,大家最近如果需要抢票,则可以使用该新版代码。&/p&&p&&b&更新日期:&/b&&/p&&p&日&/p&&p&&b&使用介绍:&/b&&/p&&p&1、将代码中的配置项(你的12306账号与密码)配置好&/p&&p&2、把你需要预订的城市的车票的三字码添加到areatocode字典中&/p&&p&3、运行并按提示输入(详见使用解说视频)&/p&&p&&b&代码正文:&/b&&/p&&figure&&img src=&https://pic3.zhimg.com/v2-6bb206f3e7a20840dba355e0c91f11aa_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1112& data-rawheight=&602& class=&origin_image zh-lightbox-thumb& width=&1112& data-original=&https://pic3.zhimg.com/v2-6bb206f3e7a20840dba355e0c91f11aa_r.jpg&&&/figure&&figure&&img src=&https://pic3.zhimg.com/v2-510fdec5c3a5dc421e3e_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1131& data-rawheight=&459& class=&origin_image zh-lightbox-thumb& width=&1131& data-original=&https://pic3.zhimg.com/v2-510fdec5c3a5dc421e3e_r.jpg&&&/figure&&figure&&img src=&https://pic3.zhimg.com/v2-6c1ef7a25cfca3d121966_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1241& data-rawheight=&602& class=&origin_image zh-lightbox-thumb& width=&1241& data-original=&https://pic3.zhimg.com/v2-6c1ef7a25cfca3d121966_r.jpg&&&/figure&&figure&&img src=&https://pic1.zhimg.com/v2-342f408faf4f7b649a44_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1224& data-rawheight=&534& class=&origin_image zh-lightbox-thumb& width=&1224& data-original=&https://pic1.zhimg.com/v2-342f408faf4f7b649a44_r.jpg&&&/figure&&figure&&img src=&https://pic4.zhimg.com/v2-03e2d9b1c4bc2dfeb6adf_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&760& data-rawheight=&120& class=&origin_image zh-lightbox-thumb& width=&760& data-original=&https://pic4.zhimg.com/v2-03e2d9b1c4bc2dfeb6adf_r.jpg&&&/figure&&figure&&img src=&https://pic1.zhimg.com/v2-38ceacba5b9fadffdc7c22f30a5bce8c_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&611& data-rawheight=&553& class=&origin_image zh-lightbox-thumb& width=&611& data-original=&https://pic1.zhimg.com/v2-38ceacba5b9fadffdc7c22f30a5bce8c_r.jpg&&&/figure&&figure&&img src=&https://pic2.zhimg.com/v2-094e29f68d713a98f0bbe9_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1201& data-rawheight=&579& class=&origin_image zh-lightbox-thumb& width=&1201& data-original=&https://pic2.zhimg.com/v2-094e29f68d713a98f0bbe9_r.jpg&&&/figure&&figure&&img src=&https://pic3.zhimg.com/v2-6d6e6b3f6ed02ceddcb04ef4a776148e_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1244& data-rawheight=&585& class=&origin_image zh-lightbox-thumb& width=&1244& data-original=&https://pic3.zhimg.com/v2-6d6e6b3f6ed02ceddcb04ef4a776148e_r.jpg&&&/figure&&figure&&img src=&https://pic1.zhimg.com/v2-9b10d41ac7e58de68b20_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1220& data-rawheight=&587& class=&origin_image zh-lightbox-thumb& width=&1220& data-original=&https://pic1.zhimg.com/v2-9b10d41ac7e58de68b20_r.jpg&&&/figure&&figure&&img src=&https://pic2.zhimg.com/v2-f0ffa192c2b45d518825_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1225& data-rawheight=&579& class=&origin_image zh-lightbox-thumb& width=&1225& data-original=&https://pic2.zhimg.com/v2-f0ffa192c2b45d518825_r.jpg&&&/figure&&figure&&img src=&https://pic3.zhimg.com/v2-b50d7ba0b02_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1208& data-rawheight=&602& class=&origin_image zh-lightbox-thumb& width=&1208& data-original=&https://pic3.zhimg.com/v2-b50d7ba0b02_r.jpg&&&/figure&&figure&&img src=&https://pic3.zhimg.com/v2-10af93f230c5bd73fd8e6_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1177& data-rawheight=&582& class=&origin_image zh-lightbox-thumb& width=&1177& data-original=&https://pic3.zhimg.com/v2-10af93f230c5bd73fd8e6_r.jpg&&&/figure&&figure&&img src=&https://pic1.zhimg.com/v2-90f61d27d50f12acfa42a24_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1172& data-rawheight=&603& class=&origin_image zh-lightbox-thumb& width=&1172& data-original=&https://pic1.zhimg.com/v2-90f61d27d50f12acfa42a24_r.jpg&&&/figure&&figure&&img src=&https://pic2.zhimg.com/v2-7ac8abeb35f5efa80d9b_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1025& data-rawheight=&626& class=&origin_image zh-lightbox-thumb& width=&1025& data-original=&https://pic2.zhimg.com/v2-7ac8abeb35f5efa80d9b_r.jpg&&&/figure&&figure&&img src=&https://pic2.zhimg.com/v2-52c24eacfb06c537b48bb21_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1145& data-rawheight=&555& class=&origin_image zh-lightbox-thumb& width=&1145& data-original=&https://pic2.zhimg.com/v2-52c24eacfb06c537b48bb21_r.jpg&&&/figure&&figure&&img src=&https://pic4.zhimg.com/v2-86c6aa8b0d76bc066b7bfb48b8b8bf83_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1099& data-rawheight=&531& class=&origin_image zh-lightbox-thumb& width=&1099& data-original=&https://pic4.zhimg.com/v2-86c6aa8b0d76bc066b7bfb48b8b8bf83_r.jpg&&&/figure&&figure&&img src=&https://pic4.zhimg.com/v2-9e2ccbab3748bef02c0c3db_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1210& data-rawheight=&605& class=&origin_image zh-lightbox-thumb& width=&1210& data-original=&https://pic4.zhimg.com/v2-9e2ccbab3748bef02c0c3db_r.jpg&&&/figure&&figure&&img src=&https://pic3.zhimg.com/v2-765dc208b9dd314341ddc2_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1254& data-rawheight=&581& class=&origin_image zh-lightbox-thumb& width=&1254& data-original=&https://pic3.zhimg.com/v2-765dc208b9dd314341ddc2_r.jpg&&&/figure&&figure&&img src=&https://pic4.zhimg.com/v2-0fbf12f8d49f589faa70c7c6d2722783_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1170& data-rawheight=&555& class=&origin_image zh-lightbox-thumb& width=&1170& data-original=&https://pic4.zhimg.com/v2-0fbf12f8d49f589faa70c7c6d2722783_r.jpg&&&/figure&&figure&&img src=&https://pic1.zhimg.com/v2-309f327fe900e8c9252bd0_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1183& data-rawheight=&602& class=&origin_image zh-lightbox-thumb& width=&1183& data-original=&https://pic1.zhimg.com/v2-309f327fe900e8c9252bd0_r.jpg&&&/figure&&figure&&img src=&https://pic4.zhimg.com/v2-4dbb4019f40fbd5a2afe85f_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1190& data-rawheight=&485& class=&origin_image zh-lightbox-thumb& width=&1190& data-original=&https://pic4.zhimg.com/v2-4dbb4019f40fbd5a2afe85f_r.jpg&&&/figure&&p&&br&&/p&&p&&b&代码下载:&/b&&/p&&p&链接: &a href=&http://link.zhihu.com/?target=https%3A//pan.baidu.com/s/14C9auPftvy211l9ZIW6RNA& class=& external& target=&_blank& rel=&nofollow noreferrer&&&span class=&invisible&&https://&/span&&span class=&visible&&pan.baidu.com/s/14C9auP&/span&&span class=&invisible&&ftvy211l9ZIW6RNA&/span&&span class=&ellipsis&&&/span&&/a& 密码: ej49&/p&&p&若上述百度网盘上的网址被屏蔽,可以通过代码的备用下载地址下载:&/p&&p&&a href=&http://link.zhihu.com/?target=http%3A//weiwei.iqianyue.com/articles/131/& class=& external& target=&_blank& rel=&nofollow noreferrer&&&span class=&invisible&&http://&/span&&span class=&visible&&weiwei.iqianyue.com/art&/span&&span class=&invisible&&icles/131/&/span&&span class=&ellipsis&&&/span&&/a&&/p&&p&最后,如果不熟悉Python基础的朋友可以参考作者的书籍&b&《Python程序设计基础实战教程》. 清华大学出版社.韦玮&/b&,如下:&/p&&figure&&img src=&https://pic3.zhimg.com/v2-c93d442b8f6440fadd3d19aed0f32536_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&974& data-rawheight=&366& class=&origin_image zh-lightbox-thumb& width=&974& data-original=&https://pic3.zhimg.com/v2-c93d442b8f6440fadd3d19aed0f32536_r.jpg&&&/figure&&p&&a href=&http://link.zhihu.com/?target=https%3A//item.jd.com/.html& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&点此将图书收入囊中&/a&。&/p&&a href=&http://link.zhihu.com/?target=https%3A//item.jd.com/.html& data-draft-node=&block& data-draft-type=&link-card& data-image=&https://pic1.zhimg.com/v2-1f74a6fbc320b0aea78f7ec_ipico.jpg& data-image-width=&350& data-image-height=&350& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&《Python 程序设计基础实战教程》(韦玮)【摘要 书评 试读】- 京东图书&/a&&p&&/p&
语言版本:Python1、自动登录12306并保持Cookie2、自动实现抢购设置的某日期的某车次的票3、攻克排队系统陷阱,避免进入排队系统4、循环监控某车次的票,直到有票,自动抢购5、抢票时若出现异常,自动重新抢票,直到成功 代码功能: 1、自动登录12306并保持…
题主解决了吗?我是修改sid后不能登录的。好烦啊!&br&&br&几小时后补上解决方法(高兴 )&br&我的问题已解决。虽然稀里糊涂的不过还是说出来让大家有个尝试的机会。&br&先说下我的情况:修改sid导致的无法登录,本地账号,默认无密码登录(忘了叫什么,其实是有密码的,不过开机瞬间自动填充了),题目下的回答所说的方法都试过无效。&br&再说一下解决方法:进入安全模式新建个管理员账号,重启进入新建的管理员账号,把出错账号设为普通账号(这步是网上找到的方法,虽然单独设置时无效,但我修复过程中确实是这样的,所以还是放上来了)!!!(接下来是关键步)再把出错账号账号名和密码都修改后,注销重新登录出错账号。竟然解决了!!!!&br&后面就是把出错账号再次设为管理员账号,删除新建账号。至此电脑恢复原状。&br&&br&&figure&&img src=&https://pic2.zhimg.com/50/v2-47dcc8b167dc5c774af332_b.jpg& data-rawwidth=&1125& data-rawheight=&1093& class=&origin_image zh-lightbox-thumb& width=&1125& data-original=&https://pic2.zhimg.com/50/v2-47dcc8b167dc5c774af332_r.jpg&&&/figure&
题主解决了吗?我是修改sid后不能登录的。好烦啊! 几小时后补上解决方法(高兴 ) 我的问题已解决。虽然稀里糊涂的不过还是说出来让大家有个尝试的机会。 先说下我的情况:修改sid导致的无法登录,本地账号,默认无密码登录(忘了叫什么,其实是有密码的,…
&figure&&img src=&https://pic2.zhimg.com/v2-897b58af264bae273b3351_b.jpg& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic2.zhimg.com/v2-897b58af264bae273b3351_r.jpg&&&/figure&&p&这次给大家带来的是&b&7 幅思维导图,主要就 Python 常用标准库及相关计算机知识&/b&进行了梳理。&/p&&p&Python 标准库的内容非常丰富,本文仅是从笔者关注的角度出发,学习并整理了其中最普适的主题:&b&正则表达式、日期时间、系统交互、文件管理、进程与线程、数据库操作、数学运算及拓展数据结构&/b&。&/p&&h2&▍1.导图一览&/h2&&p&&b&先看一下本文所有思维导图:&/b&&/p&&a class=&video-box& href=&http://link.zhihu.com/?target=https%3A//www.zhihu.com/video/276224& target=&_blank& data-video-id=&& data-video-playable=&true& data-name=&& data-poster=&https://pic3.zhimg.com/80/v2-dbfefce4d1d154ef294702_b.jpg& data-lens-id=&276224&&
&img class=&thumbnail& src=&https://pic3.zhimg.com/80/v2-dbfefce4d1d154ef294702_b.jpg&&&span class=&content&&
&span class=&title&&&span class=&z-ico-extern-gray&&&/span&&span class=&z-ico-extern-blue&&&/span&&/span&
&span class=&url&&&span class=&z-ico-video&&&/span&https://www.zhihu.com/video/276224&/span&
&p&P.S.由于平台对图片有一定程度的压缩,&b&建议下载高清原图(见文末),放大后阅读&/b&。&/p&&p&&b&小伙伴们,要不要顺手点个赞呢,笔芯&/b& ? &/p&&figure&&img src=&https://pic2.zhimg.com/v2-515e75561c6cdac56b3a9_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1172& data-rawheight=&897& class=&origin_image zh-lightbox-thumb& width=&1172& data-original=&https://pic2.zhimg.com/v2-515e75561c6cdac56b3a9_r.jpg&&&/figure&&h2&▍2.如何阅读&/h2&&figure&&img src=&https://pic3.zhimg.com/v2-789f20e2db13ec45c0d06_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic3.zhimg.com/v2-789f20e2db13ec45c0d06_r.jpg&&&/figure&&p&对于基础较为薄弱的朋友,建议配合参考书目学习,更重要的是项目实战练习,&b&把思维导图作为辅助梳理逻辑的工具&/b&。&/p&&h2&▍3.「7 幅」导图&/h2&&p&&b&0 目录页&/b& &/p&&figure&&img src=&https://pic2.zhimg.com/v2-897b58af264bae273b3351_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic2.zhimg.com/v2-897b58af264bae273b3351_r.jpg&&&/figure&&p&&b&1 标准库概述&/b& &/p&&figure&&img src=&https://pic2.zhimg.com/v2-ae7bd4fd3b68ded9fdf79_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic2.zhimg.com/v2-ae7bd4fd3b68ded9fdf79_r.jpg&&&/figure&&p&&b&2 正则表达式&/b& &/p&&figure&&img src=&https://pic4.zhimg.com/v2-ba93e58a97fb_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic4.zhimg.com/v2-ba93e58a97fb_r.jpg&&&/figure&&p&&b&3 日期 & 时间&/b& &/p&&figure&&img src=&https://pic4.zhimg.com/v2-c38d8c4a9b13be39c61aaa05e79432a3_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic4.zhimg.com/v2-c38d8c4a9b13be39c61aaa05e79432a3_r.jpg&&&/figure&&p&&b&4 系统 & 文件&/b& &/p&&figure&&img src=&https://pic4.zhimg.com/v2-e01edae7fc8d261b422eb_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic4.zhimg.com/v2-e01edae7fc8d261b422eb_r.jpg&&&/figure&&p&&b&5 进程 & 线程&/b& &/p&&figure&&img src=&https://pic4.zhimg.com/v2-40fd5b0aa6b0f1aabe08cc43_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic4.zhimg.com/v2-40fd5b0aa6b0f1aabe08cc43_r.jpg&&&/figure&&p&&b&6 数据库操作&/b& &/p&&figure&&img src=&https://pic4.zhimg.com/v2-f533c87e0fa1f_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic4.zhimg.com/v2-f533c87e0fa1f_r.jpg&&&/figure&&p&&b&7 数学运算 & 数据结构&/b& &/p&&figure&&img src=&https://pic4.zhimg.com/v2-fee119ca2c463_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&2527& data-rawheight=&1790& class=&origin_image zh-lightbox-thumb& width=&2527& data-original=&https://pic4.zhimg.com/v2-fee119ca2c463_r.jpg&&&/figure&&h2&▍4.学习指导&/h2&&figure&&img src=&https://pic1.zhimg.com/v2-fdefc6dc628c17d5f1898_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1497& data-rawheight=&1078& class=&origin_image zh-lightbox-thumb& width=&1497& data-original=&https://pic1.zhimg.com/v2-fdefc6dc628c17d5f1898_r.jpg&&&/figure&&p&&b&补充一本《从 Python 开始学编程》,对于计算机基础薄弱的朋友们会大有帮助哦~&/b&&/p&&h2&▍5.下篇规划&/h2&&p&本文与上一篇【17 幅思维导图:Python 编程之核心知识体系】一起,基于 Python 语言本身的介绍就结束了。未来我们将关注 Python 在具体领域中的应用,比如爬虫,科学计算,数据挖掘,可视化等等。&/p&&p&&b&若发现本篇 Python 笔记有错误,希望大家能在公众号后台给我留言,注明「#错误」,方便我统一进行处理&/b&。若有内容纠错更新,会在每周末给大家群发消息,告知新的思维导图下载链接哦~&/p&&h2&▍6.如何下载&/h2&&p&三种方式均可获得高清原图及 PDF 版下载链接:&/p&&p&? 公众号找到本文 → 左下角「阅读原文」→ 提取文件(密码:f0o3)&/p&&p&? 公众号后台回复关键词「Python」&/p&&p&? 进入公众号目录「导图下载」→ Python-R&/p&&p&&b&最后,能坚持看到这里的小伙伴都是真爱呀,顺手点个赞鼓励我继续创作吧,笔芯~&/b&&/p&&p&? &b&推荐阅读:&/b&&/p&&a href=&https://zhuanlan.zhihu.com/p/& data-draft-node=&block& data-draft-type=&link-card& data-image=&https://pic3.zhimg.com/v2-5df2efd7e4a_180x120.jpg& data-image-width=&1376& data-image-height=&722& class=&internal&&ZOE酱:17 幅思维导图 | Python 编程之核心知识体系(第三版更新)&/a&&figure&&img src=&https://pic1.zhimg.com/v2-c3e2ea55e1acef4d31d0_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1122& data-rawheight=&793& class=&origin_image zh-lightbox-thumb& width=&1122& data-original=&https://pic1.zhimg.com/v2-c3e2ea55e1acef4d31d0_r.jpg&&&/figure&&p&&/p&
这次给大家带来的是7 幅思维导图,主要就 Python 常用标准库及相关计算机知识进行了梳理。Python 标准库的内容非常丰富,本文仅是从笔者关注的角度出发,学习并整理了其中最普适的主题:正则表达式、日期时间、系统交互、文件管理、进程与线程、数据库操作…
&figure&&img src=&https://pic1.zhimg.com/v2-94c0174d78dfc133b373ae7cb3197871_b.jpg& data-rawwidth=&648& data-rawheight=&765& class=&origin_image zh-lightbox-thumb& width=&648& data-original=&https://pic1.zhimg.com/v2-94c0174d78dfc133b373ae7cb3197871_r.jpg&&&/figure&&blockquote&作者简介:&br&鲁伟:一个数据科学践行者的学习日记。数据挖掘与机器学习,R与Python,理论与实践并行。&br&个人公众号:数据科学家养成记 (微信ID:louwill12)&br&配套学习视频教程:手把手教你用Python 实践深度学习 &a href=&https://link.zhihu.com/?target=https%3A//edu.hellobi.com/course/278& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&手把手教你用Python 实践深度学习&/a& &/blockquote&&p&很多人说深度学习就是个黑箱子,把图像预处理之后丢进 tensorflow 就能出来预测结果,简单有效又省时省力。但正如我在上一篇推送中所说,如果你已是一名功力纯厚的深度学习工程师,这么做当然没问题。但我想大多数人也和我一样,都是走在学习深度学习的路上,一上来就上框架并没有什么特别不妥之处,但总归是对你理解深度学习的黑箱机制是了无裨益的。所以,我建议在学习深度学习的路上,从最简单的感知机开始写起,一步一步捋清神经网络的结构,以至于激活函数怎么写、采用何种损失函数、前向传播怎么写、后向传播又怎么写,权值如何迭代更新,都需要你自己去实现。若在一开始就直接调用框架,小的 demo 可以跑起来,糊弄一时,看起来就像是鸠摩智在内力未到的情形下强行练习少林寺的 72 绝技,最后走火入魔。&/p&&p&无论你是在看那本深度学习的花书,还是在学习 Adrew NG 的 deeplearningai,或者是在cs231n 课程,对神经网络的基本理论了如指掌的你一定想亲手用 python 来实现它。笔记1就在不借助任何深度学习框架的基础上,利用 python 的科学计算库 numpy 由最初级的感知机开始,从零搭建一个神经网络模型。&/p&&p&&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-25c1d128ad030f856f58a_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&640& data-rawheight=&393& class=&origin_image zh-lightbox-thumb& width=&640& data-original=&https://pic4.zhimg.com/v2-25c1d128ad030f856f58a_r.jpg&&&/figure&&p&&br&&/p&&p&感知机结构&/p&&p&
对于感知机模型、神经网络理论这里就不再叙述,相信志在精通深度学习的你对此一定很熟练了。至于对于神经网络中的输入层、隐藏层、输出层、权重与偏置、激活函数、损失函数、前向传播、反向传播、权值更新、梯度下降、微积分中的链式求导、方向梯度等概念,我也假设你很熟练了。所以,接下来就让我们从零搭建一个最初级的神经网络模型。&/p&&p&
在写代码前,必须先捋一下思路,咱们先要什么,然后再写什么,你心中必须有个数。要从零开始写一个神经网络,通常的方法是:&/p&&ul&&li&定义网络结构(指定输出层、隐藏层、输出层的大小)&/li&&li&初始化模型参数&/li&&li&循环操作:执行前向传播/计算损失/执行后向传播/权值更新&/li&&/ul&&p&
有了上面这个思路,我们就可以开始写了。当然了,本节是写一个最简单的感知机模型,所以网络结构就无需特别定义。首先来定义我们的激活函数,激活函数有很多种,这里我们使用大名鼎鼎的 sigmoid 函数:&/p&&p&
直接利用 numpy 进行定义 sigmoid()&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&import numpy as np
def sigmoid(x):
return 1 / (1 + np.exp(-x))
&/code&&/pre&&/div&&p&
在无需定义网络结构的情形下,第二步我们就可以直接对模型参数进行初始化。模型参数主要包括权值w 和偏置 b ,这也是神经网络学习过程要学的东西。继续利用 numpy
对参数进行初始化:&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&def initilize_with_zeros(dim):
w = np.zeros((dim, 1))
#assert(w.shape == (dim, 1))
#assert(isinstance(b, float) or isinstance(b, int))
return w, b
&/code&&/pre&&/div&&p&
接下来就要进入模型的主体部分,执行最后一步那个大的循环操作,这个循环中包括前向传播和计算损失、反向传播和权值更新。这也是神经网络训练过程中每一次需要迭代的部分。这里简单说一下,很多初学者容易被这两个概念绕住,前向传播简单而言就是计算预测 y 的过程,而后向传播则是根据预测值和实际值之间的误差不断往回推更新权值和偏置的过程。&/p&&p&&br&&/p&&figure&&img src=&https://pic1.zhimg.com/v2-ac01ba0ee4c16_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1080& data-rawheight=&176& class=&origin_image zh-lightbox-thumb& width=&1080& data-original=&https://pic1.zhimg.com/v2-ac01ba0ee4c16_r.jpg&&&/figure&&p&&br&&/p&&p&前后传播与后向传播&/p&&p&
下面我们来定义一个大的前向传播函数,预测值y为模型从输入到经过激活函数处理后的输出的结果。损失函数我们采用交叉熵损失,利用 numpy 定义如下函数:&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&def propagate(w, b, X, Y):
m = X.shape[1]
A = sigmoid(np.dot(w.T, X) + b)
cost = -1/m * np.sum(Y*np.log(A) + (1-Y)*np.log(1-A))
dw = np.dot(X, (A-Y).T)/m
db = np.sum(A-Y)/m
assert(dw.shape == w.shape)
assert(db.dtype == float)
cost = np.squeeze(cost)
assert(cost.shape == ())
grads = { 'dw': dw,
return grads, cost
&/code&&/pre&&/div&&p&
在上面的前向传播函数中,我们先是通过激活函数直接表示了感知机输出的预测值,然后通过定义的交叉熵损失函数计算了损失,最后根据损失函数计算了权值 w 和偏置 b的梯度,将参数梯度结果以字典和损失一起作为函数的输出进行返回。这就是前向传播的编写思路。&/p&&p&
接下来循环操作的第二步就是进行反向传播操作,计算每一步的当前损失根据损失对权值进行更新。同样定义一个函数 backward_propagation :&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&def backward_propagation(w, b, X, Y, num_iterations, learning_rate, print_cost=False):
for i in range(num_iterations):
grad, cost = propagate(w, b, X, Y)
dw = grad['dw']
db = grad['db']
w = w - learing_rate * dw
b = b - learning_rate * db
if i % 100 == 0:
cost.append(cost)
if print_cost and i % 100 == 0:
print(&cost after iteration %i: %f& %(i, cost))
params = {&dw&: w,
grads = {&dw&: dw,
return params, grads, costs
&/code&&/pre&&/div&&p&
在上述函数中,我们先是建立了一个损失列表容器,然后将前一步定义的前向传播函数放进去执行迭代操作,计算每一步的当前损失和梯度,利用梯度下降法对权值进行更新,并用字典封装迭代结束时的参数和梯度进行返回。&/p&&p&
如上所示,一个简单的神经网络模型(感知机)就搭建起来了。通常模型建好之后我们还需要对测试数据进行预测,所以我们也定义一个预测函数 predict,将模型的概率输出转化为0/1值。&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&def predict(w, b, X):
m = X.shape[1]
Y_prediction = np.zeros((1, m))
w = w.reshape(X.shape[0], 1)
A = sigmoid(np.dot(w.T, X)+b)
for i in range(A.shape[1]):
if A[:, i] & 0.5:
Y_prediction[:, i] = 1
Y_prediction[:, i] = 0
assert(Y_prediction.shape == (1, m))
return Y_prediction
&/code&&/pre&&/div&&p&
到这里整个模型算是写完了,但是我们定义了这么多函数,调用起来太麻烦,所以致力于要写出 pythonic的代码的你们肯定想对这些函数进行一下简单的封装:&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&def model(X_train, Y_train, X_test, Y_test, num_iterations = 2000, learning_rate = 0.5, print_cost = False):
# initialize parameters with zeros (≈ 1 line of code)
w, b = initialize_with_zeros(X_train.shape[0])
# Gradient descent (≈ 1 line of code)
parameters, grads, costs = backwize(w, b, X_train, Y_train, num_iterations, learning_rate, print_cost)
# Retrieve parameters w and b from dictionary &parameters&
w = parameters[&w&]
b = parameters[&b&]
# Predict test/train set examples (≈ 2 lines of code)
Y_prediction_train = predict(w, b, X_train)
Y_prediction_test = predict(w, b, X_test)
# Print train/test Errors
print(&train accuracy: {} %&.format(100 - np.mean(np.abs(Y_prediction_train - Y_train)) * 100))
print(&test accuracy: {} %&.format(100 - np.mean(np.abs(Y_prediction_test - Y_test)) * 100))
d = {&costs&: costs,
&Y_prediction_test&: Y_prediction_test,
&Y_prediction_train& : Y_prediction_train,
&learning_rate& : learning_rate,
&num_iterations&: num_iterations}
&/code&&/pre&&/div&&p&
如此这般一个简易的神经网络就被你用 numpy就写出来了。现在社会浮躁,很多人学习都没有耐心,总是抱着鸠摩智的心态想要一步登天。学习机器学习和深度学习方法很多,但我相信,只有对基本的算法原理每一步都捋清楚,每一步都用最基础的库去实现,你成为一名优秀的机器学习工程师只是时间问题。深度学习第一次推送笔记,加油吧各位!&/p&&p&参考资料:&/p&&p&&a href=&https://link.zhihu.com/?target=https%3A//www.coursera.org/learn/machine-learning& class=& external& target=&_blank& rel=&nofollow noreferrer&&&span class=&invisible&&https://www.&/span&&span class=&visible&&coursera.org/learn/mach&/span&&span class=&invisible&&ine-learning&/span&&span class=&ellipsis&&&/span&&/a&&/p&&p&&a href=&https://link.zhihu.com/?target=https%3A//www.deeplearning.ai/& class=& external& target=&_blank& rel=&nofollow noreferrer&&&span class=&invisible&&https://www.&/span&&span class=&visible&&deeplearning.ai/&/span&&span class=&invisible&&&/span&&/a& &/p&&p&&br&&/p&&hr&&p&7月26日&br&&/p&&p&&b&&a href=&https://link.zhihu.com/?target=https%3A//edu.hellobi.com/course/286& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&Hellobi Live&/a&&/b&&/p&&p&&b&&a href=&https://link.zhihu.com/?target=https%3A//edu.hellobi.com/course/286& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&现场直播&/a&&/b&&/p&&p&&b&免费!&/b&&/p&&p&&b&免费!&/b&&/p&&p&&b&免费!&/b&&/p&&p&&a href=&https://link.zhihu.com/?target=https%3A//edu.hellobi.com/course/286& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&深度学习从哪开始学?从数据分析师到机器学习(深度学习)工程师的进阶之路&/a&&b& ,内容:1、机器学习/深度学习的学习方法 2、数据职业生涯规划与自我转型路线 3、手把手教你搭建一个深度神经网络(DNN)&/b&&/p&&p&&b&扫描下图二维码&/b&即可参与学习&/p&&p&&br&&/p&&figure&&img src=&https://pic3.zhimg.com/v2-8e225c52cc1ecfaaefb5588_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&720& data-rawheight=&1280& class=&origin_image zh-lightbox-thumb& width=&720& data-original=&https://pic3.zhimg.com/v2-8e225c52cc1ecfaaefb5588_r.jpg&&&/figure&&p&&/p&
作者简介: 鲁伟:一个数据科学践行者的学习日记。数据挖掘与机器学习,R与Python,理论与实践并行。 个人公众号:数据科学家养成记 (微信ID:louwill12) 配套学习视频教程:手把手教你用Python 实践深度学习
很多人说深…
&figure&&img src=&https://pic1.zhimg.com/v2-14ecc0e8afb3b697fe1b10a7f911b937_b.jpg& data-rawwidth=&580& data-rawheight=&339& class=&origin_image zh-lightbox-thumb& width=&580& data-original=&https://pic1.zhimg.com/v2-14ecc0e8afb3b697fe1b10a7f911b937_r.jpg&&&/figure&&p&
由国立台湾大学大学语音处理及机器学习实验室李宏毅老师开设的深度学习及生成对抗需欸写基础-2018(春)课程已经结束了,该门课程从2015年春季,开设至今,已经有三个年头了,非常基础、全面、丰富,全套课程都采用中文讲解,非常适合想要入门和扎实深度学习基础的同学学习。&/p&&p&
今年的春季课程刚结束,这里整理了整套课程的视频及PPT分享给大家。(文末附课程ppt及视频教程下载链接)&/p&&p&&br&&/p&&p&&b&课程大纲&/b&&/p&&figure&&img src=&https://pic3.zhimg.com/v2-ce2_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1063& data-rawheight=&873& class=&origin_image zh-lightbox-thumb& width=&1063& data-original=&https://pic3.zhimg.com/v2-ce2_r.jpg&&&/figure&&figure&&img src=&https://pic1.zhimg.com/v2-bfbfd0844734_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1080& data-rawheight=&497& class=&origin_image zh-lightbox-thumb& width=&1080& data-original=&https://pic1.zhimg.com/v2-bfbfd0844734_r.jpg&&&/figure&&figure&&img src=&https://pic3.zhimg.com/v2-ce2_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1063& data-rawheight=&873& class=&origin_image zh-lightbox-thumb& width=&1063& data-original=&https://pic3.zhimg.com/v2-ce2_r.jpg&&&/figure&&p&&br&&/p&&p&&b&ppt及视频教程下载地址:&/b&&/p&&p&
&a href=&http://link.zhihu.com/?target=https%3A//pan.baidu.com/s/1U6wADsGpuvgRqPI9I-bb_g& class=& external& target=&_blank& rel=&nofollow noreferrer&&&span class=&invisible&&https://&/span&&span class=&visible&&pan.baidu.com/s/1U6wADs&/span&&span class=&invisible&&GpuvgRqPI9I-bb_g&/span&&span class=&ellipsis&&&/span&&/a&&/p&&p&
密码: 公众号回复“&b&lhy2018&/b&”&/p&
由国立台湾大学大学语音处理及机器学习实验室李宏毅老师开设的深度学习及生成对抗需欸写基础-2018(春)课程已经结束了,该门课程从2015年春季,开设至今,已经有三个年头了,非常基础、全面、丰富,全套课程都采用中文讲解,非常适合想要入门和扎实深度学…
&figure&&img src=&https://pic1.zhimg.com/v2-d148e3bab167b1d3b5ab36_b.jpg& data-rawwidth=&2400& data-rawheight=&1800& class=&origin_image zh-lightbox-thumb& width=&2400& data-original=&https://pic1.zhimg.com/v2-d148e3bab167b1d3b5ab36_r.jpg&&&/figure&&h2&1.树莓派是啥?3B+又怎么样嘛?&/h2&&p&诺,就是这玩意。被誉为是工科生的玩具,顶级的嵌入式硬件,最小的个人电脑。基于arm的电脑主板,但是它也仅仅只是一块主板而已。&/p&&figure&&img src=&https://pic4.zhimg.com/v2-fbdd8f00359f_b.jpg& data-size=&normal& data-rawwidth=&2736& data-rawheight=&1539& class=&origin_image zh-lightbox-thumb& width=&2736& data-original=&https://pic4.zhimg.com/v2-fbdd8f00359f_r.jpg&&&figcaption&只是一块主板的树莓派,用tf卡作为它的硬盘,但是却又无限的可能&/figcaption&&/figure&&p&树莓派3B+是在2018年pi日(3月14日)发售的目前为止树莓派家族当中最新,性能最强,也是功耗最高的一款产品= =(插上电就显示供电不足??)具有着以下的新特性(看看就好看看就好x)&/p&&ul&&li&1.4GHz 64位4核 ARM Cortex-A53 CPU&/li&&li&双频 802.11acz双模无线网卡和蓝牙 4.2&/li&&li&更快的以太网(千兆以太网 over USB 2.0)&/li&&li&1G LPDDR2&/li&&li&PoE 支持(Power-over-Ethernet,with PoE HAT)&/li&&li&改进 PXE 网络与 USB 大容量存储启动&/li&&/ul&&p&今年做大创项目有了经费,于是买了一块计划用于无人机自动控制,但是没想到这个东西功耗居然那么大,用自己的电流表测了下,用移动电源待机电流居然有0.43A(如图),插上HDMI还表示自己供电不足,很显然是上不了我的无人机了(&/p&&figure&&img src=&https://pic1.zhimg.com/v2-1fc55f606bf7478dfc97690_b.jpg& data-size=&normal& data-rawwidth=&2605& data-rawheight=&1465& class=&origin_image zh-lightbox-thumb& width=&2605& data-original=&https://pic1.zhimg.com/v2-1fc55f606bf7478dfc97690_r.jpg&&&figcaption&哇这玩意功耗真的高!&/figcaption&&/figure&&p&好了接下来言归正传,继续讲怎么让这个东西“跑起来”。&/p&&h2&2.前期准备:我需要什么?我要做什么?&/h2&&p&必备物品清单:你自己、脑子、有网络的电脑一台、存储卡一张(8g以上)、5v电源以及microusb数据线、HDMI线以及显示器(转接啊什么的也行,但是对树莓派的供电需求就更高了,有可能会提示供电不足)、USB键鼠(注意:这俩最好最好有,因为现在树莓派安装后SSH默认是关闭的,你要是没有的话建议不要继续看本篇文章,本篇文章将不会包含无显示器与鼠标安装的内容,因为不太好写打算单独再写一个文章XD)、散热片啊散热风扇什么的(哇感觉超烫手欸,可能夏天到了的缘故w)&/p&&p&树莓派作为一个超级微型的电脑,自然也是需要操作系统的,当然也需要自己的系统硬盘,也就是tf卡。由于Linux系统的特殊性,并不需要多大的存储卡,8到16g就足够了。当然现在随着科技的发展,树莓派甚至都可以装Windows 10系统了,那你可能就需要一个更大的存储卡了,当然这里我们不谈这个。&/p&&p&有了存储卡,你当然也需要一个操作系统。树莓派3B+可以安装多种操作系统,比如官方的基于Debian的系统Raspbian,以及Ubuntu cored(并不能安装原版Ubuntu的样子)等等。这里我们当然先选择官方的Raspbian啦!打开官方的下载链接:&a href=&http://link.zhihu.com/?target=https%3A//www.raspberrypi.org/downloads/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&Raspberry Pi Downloads - Software for the Raspberry Pi&/a&
如果丢到迅雷里面的话速度还勉强可以!&/p&&p&然后摆在你面前有两个东西:noobs跟raspbian本体。(如下图)&/p&&figure&&img src=&https://pic2.zhimg.com/v2-f0a06da6ee6b9c420b55b163f3bf6795_b.jpg& data-size=&small& data-rawwidth=&995& data-rawheight=&477& class=&origin_image zh-lightbox-thumb& width=&995& data-original=&https://pic2.zhimg.com/v2-f0a06da6ee6b9c420b55b163f3bf6795_r.jpg&&&figcaption&选左一&/figcaption&&/figure&&p&&br&&/p&&p&作为一名新手,我们选择noobs最为简单不过啦(毕竟名字写的就是新手)这也是树莓派官方大多数情况为随树莓派配送的存储卡提供的安装方式-。-&/p&&p&点开后发现还是两个,这里推荐第一个,因为该有的东西都有,装上就可以稍微玩玩了!&/p&&figure&&img src=&https://pic4.zhimg.com/v2-3cba8286cb_b.jpg& data-size=&small& data-rawwidth=&1850& data-rawheight=&382& class=&origin_image zh-lightbox-thumb& width=&1850& data-original=&https://pic4.zhimg.com/v2-3cba8286cb_r.jpg&&&figcaption&还是左一嗷&/figcaption&&/figure&&p&在下载好后是一个压缩文件,可以校验一下md5:&/p&&figure&&img src=&https://pic4.zhimg.com/v2-4e824a71ecf7_b.jpg& data-size=&normal& data-rawwidth=&1753& data-rawheight=&1733& class=&origin_image zh-lightbox-thumb& width=&1753& data-original=&https://pic4.zhimg.com/v2-4e824a71ecf7_r.jpg&&&figcaption&里面是酱紫的!&/figcaption&&/figure&&p&然后你需要做的全部就是:把里面所有的文件解压到储存卡的根目录当中。&/p&&p&接下来就是把存储卡插进树莓派,各种线接好,然后等代开机了。&/p&&p&如果你选用的是第二个的话,就需要用一个软件&/p&&figure&&img src=&https://pic4.zhimg.com/v2-2e0b370ae5de466c9261e27_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&387& data-rawheight=&94& class=&content_image& width=&387&&&/figure&&p&跟写Windows系统安装U盘一样一样的。做好之后跳过下面的步骤嗷,你的系统理论上已经装好了,接上电就可以了w&/p&&h2&3.安装并启动!( o? ω o? )y&/h2&&p&把线都接好后把usb线缆插好,树莓派上面有两个灯灯就该亮起来了,如果一切正常,红灯会常亮,绿灯(磁盘读写灯)会闪烁。此后在你的显示器上面会出现安装系统选择界面。就像平时用的Windows一样!很简单对吧,然后我就没拍照了(哭)选定一个,那个就是我们要安装的系统,屏幕上啥提示都有,该按什么按键都有,所以我就没拍照(哭哭)&/p&&p&然后就可以去倒一杯水喝了,一会就安装好了,记得选择地区跟语言(不过里面也能选就是了&/p&&figure&&img src=&https://pic3.zhimg.com/v2-14dcc3b9cae2_b.jpg& data-size=&normal& data-rawwidth=&2737& data-rawheight=&1378& class=&origin_image zh-lightbox-thumb& width=&2737& data-original=&https://pic3.zhimg.com/v2-14dcc3b9cae2_r.jpg&&&figcaption&之后就会进到桌面了!&/figcaption&&/figure&&p&进到桌面后是上图酱紫的,如果右上角有个闪电图标,分辨率也很低,那就是供电不足啦,可以选用那些类似于5V2.5A或者电流更大的电源适配器(这玩意怎么这么耗电- -&/p&&h2&4.连接WiFi并启动SSH!&/h2&&p&树莓派3B+自带双模WiFi芯片,可以连接5gWiFi哦!&/p&&p&但是首先在设置里面把网络地区设置一下才可以用。&/p&&p&进了设置不要忘了启动SSH嗷w&/p&&p&但是如果要连接隐藏ssid的WiFi(比如我在宿舍自己的WiFi,就需要进行额外的设置&/p&&p&如果你连接好了,就不要看WiFi这部分啦,连不上的话可以接着看哦x&/p&&p&&b&——以下内容请在树莓派种操作——&/b&&/p&&p&首先确定可以搜索到WiFi,打开控制台,输入:&/p&&div class=&highlight&&&pre&&code class=&language-sourceslist&&&span&&/span&&span class=&err&&iwconfig&/span&
&/code&&/pre&&/div&&p&如果出现了wlan0,那么证明你的网卡在正常的工作,鼓掌!&/p&&figure&&img src=&https://pic3.zhimg.com/v2-df0e963ba8fcca8e9bdc6e_b.jpg& data-size=&normal& data-rawwidth=&1231& data-rawheight=&307& class=&origin_image zh-lightbox-thumb& width=&1231& data-original=&https://pic3.zhimg.com/v2-df0e963ba8fcca8e9bdc6e_r.jpg&&&figcaption&可以看到我连接到的是5GWiFi嘿嘿嘿&/figcaption&&/figure&&p&再之后,输入以下:&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span& sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
&/code&&/pre&&/div&&p&如果出现权限问题,请学习下Debian的权限语句- -修改下权限就好!很简单的!&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&chomd 777
&/code&&/pre&&/div&&p&如果没有输入错误的话,会打开一个大概如下的文件。&/p&&figure&&img src=&https://pic1.zhimg.com/v2-cc7cf6e60768_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1920& data-rawheight=&990& class=&origin_image zh-lightbox-thumb& width=&1920& data-original=&https://pic1.zhimg.com/v2-cc7cf6e60768_r.jpg&&&/figure&&p&在文件末尾,插入以下语句,scan_ssid=1一定要加,如果你是用的隐藏ssid的话&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&network={
ssid=&你的ssid&
scan_ssid=1
psk=&你的密码&
key_mgmt=WPA-PSK
&/code&&/pre&&/div&&p&再之后重启网卡即可&/p&&div class=&highlight&&&pre&&code class=&language-control&&&span&&/span&&span class=&err&&sudo systemctl restart networking&/span&
&span class=&err&&sudo ifdown wlan0&/span&
&span class=&err&&sudo ifup wlan0&/span&
&span class=&err&&wpa_cli status&/span&
&/code&&/pre&&/div&&p&做完以上全部后,你的树莓派理论上就已经成功连接网络了!&/p&&p&可以欢呼一下了!&/p&&p&没有连接成功的话就用图形界面重新连一下吧,图形界面的好处就来了。&/p&&p&之后呢要知道树莓派的ip地址,有很多种方法,这里介绍两种简单的。&/p&&p&1.把鼠标移动到右上角的WiFi图标上,哇我们发现了什么?ip地址!记好就可以了w&/p&&p&2.访问路由器的管理页面,你也可以在终端管理或类似页面看到树莓派的IP地址&/p&&figure&&img src=&https://pic4.zhimg.com/v2-89e1bbe50f_b.jpg& data-size=&normal& data-rawwidth=&911& data-rawheight=&204& class=&origin_image zh-lightbox-thumb& width=&911& data-original=&https://pic4.zhimg.com/v2-89e1bbe50f_r.jpg&&&figcaption&在路由器中查看树莓派的IP地址&/figcaption&&/figure&&p&同时你也可以在路由器中进行mac地址与IP的绑定,防止IP地址变更而无法连接。&/p&&p&以上就是树莓派进行ssh的所有准备工作,接下来可以换pc来进行ssh了!&/p&&p&&b&——以下内容请在pc端操作——&/b&&/p&&p&如今的win10大多自带openssh这个软件。很方便也不用额外安装,如果没有的话就在设置里面可以方便的添加。&/p&&figure&&img src=&https://pic2.zhimg.com/v2-58a0b2e58fec8fd_b.jpg& data-size=&normal& data-rawwidth=&1000& data-rawheight=&1077& class=&origin_image zh-lightbox-thumb& width=&1000& data-original=&https://pic2.zhimg.com/v2-58a0b2e58fec8fd_r.jpg&&&figcaption&设置里面搜索添加可选功能即可,程序名称叫做openssh客户端&/figcaption&&/figure&&p&如果不知道自己有没有这个软件,win+r打开cmd,输入ssh,如果一切正常,会看到一下页面:&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-3ece2a70dbfa1ee43ae60403_b.jpg& data-size=&normal& data-rawwidth=&1920& data-rawheight=&990& class=&origin_image zh-lightbox-thumb& width=&1920& data-original=&https://pic4.zhimg.com/v2-3ece2a70dbfa1ee43ae60403_r.jpg&&&figcaption&win&/figcaption&&/figure&&p&我比较穷没有MacBook因此并不知道mac怎么样= =但是估计差不多吧2333&/p&&p&输入&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&ssh pi@你的IP地址
&/code&&/pre&&/div&&p&回车,要求输入密码&/p&&p&树莓派默认的登陆用户名是pi,密码是raspberry。&/p&&figure&&img src=&https://pic1.zhimg.com/v2-bc83d512ef99dac0a4ebb3b0_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1920& data-rawheight=&990& class=&origin_image zh-lightbox-thumb& width=&1920& data-original=&https://pic1.zhimg.com/v2-bc83d512ef99dac0a4ebb3b0_r.jpg&&&/figure&&p&enjoy!&/p&&p&有不懂的可以来留言嗷w&/p&&figure&&img src=&https://pic2.zhimg.com/v2-d8328239_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1300& data-rawheight=&1509& class=&origin_image zh-lightbox-thumb& width=&1300& data-original=&https://pic2.zhimg.com/v2-d8328239_r.jpg&&&/figure&&p&大家周末快乐~&/p&
1.树莓派是啥?3B+又怎么样嘛?诺,就是这玩意。被誉为是工科生的玩具,顶级的嵌入式硬件,最小的个人电脑。基于arm的电脑主板,但是它也仅仅只是一块主板而已。树莓派3B+是在2018年pi日(3月14日)发售的目前为止树莓派家族当中最新,性能最强,也是功耗最…
&p&基于这个笔记的实体书了解一下?书名叫《自学Python——编程基础科学计算及数据分析》,将笔记的内容进行了系统整理,并补充了一些基础知识,可以对照两边的目录看差异。&b&基于2.7&/b&。京东有自营。&/p&&hr&&p&Python 其实挺简单的,也挺强大的。&/p&&p&我用 Python 做科学计算,自学一年,也记了一年的笔记。&/p&&p&笔记链接(基于Python 2.7):&/p&&ul&&li&Github:&a href=&//link.zhihu.com/?target=https%3A//github.com/lijin-THU/notes-python& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&lijin-THU/notes-python&/a&&/li&&li&Nbviewer:&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/index.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&Jupyter Notebook Viewer&/a&&/li&&li&网页:&a href=&//link.zhihu.com/?target=http%3A//lijin-thu.github.io/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&lijin-thu.github.io&/a& &/li&&/ul&&p&笔记目录:&/p&&ul&&li&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/tree/master/01-python-tools/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&01. Python 工具&/a&&/li&&ul&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/01-python-tools/01.01-python-overview.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&01.01 Python 简介&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/01-python-tools/01.02-ipython-interpreter.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&01.02 Ipython 解释器&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/01-python-tools/01.03-ipython-notebook.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&01.03 Ipython notebook&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/01-python-tools/01.04-use-anaconda.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&01.04 使用 Anaconda&/a&&/u&&/li&&/ul&&li&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/tree/master/02-python-essentials/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02. Python 基础&/a&&/li&&ul&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.01-a-tour-of-python.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.01 Python 入门演示&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.02-python-data-types.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.02 Python 数据类型&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.03-numbers.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.03 数字&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.04-strings.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.04 字符串&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.05-indexing-and-slicing.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.05 索引和分片&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.06-lists.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.06 列表&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.07-mutable-and-immutable-data-types.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.07 可变和不可变类型&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.08-tuples.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.08 元组&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.09-speed-comparison-between-list-%26-tuple.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.09 列表与元组的速度比较&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.10-dictionaries.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.10 字典&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.11-sets.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.11 集合&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.12-frozen-sets.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.12 不可变集合&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.13-how-python-assignment-works.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.13 Python 赋值机制&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.14-if-statement.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.14 判断语句&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.15-loops.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.15 循环&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.16-list-comprehension.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.16 列表推导式&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.17-functions.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.17 函数&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.18-modules-and-packages.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.18 模块和包&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.19-exceptions.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.19 异常&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.20-warnings.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.20 警告&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/02-python-essentials/02.21-file-IO.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&02.21 文件读写&/a&&/u&&/li&&/ul&&li&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/tree/master/03-numpy/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03. Numpy&/a&&/li&&ul&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.01-numpy-overview.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.01 Numpy 简介&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.02-matplotlib-basics.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.02 Matplotlib 基础&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.03-numpy-arrays.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.03 Numpy 数组及其索引&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.04-array-types.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.04 数组类型&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.05-array-calculation-method.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.05 数组方法&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.06-sorting-numpy-arrays.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.06 数组排序&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.07-array-shapes.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.07 数组形状&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.08-diagonals.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.08 对角线&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.09-data-to-%26-from-string.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.09 数组与字符串的转换&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.10-array-attribute-%26-method-overview-.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.10 数组属性方法总结&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.11-array-creation-functions.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.11 生成数组的函数&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.12-matrix-object.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.12 矩阵&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.13-general-functions.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.13 一般函数&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.14-vectorizing-functions.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.14 向量化函数&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.15-binary-operators.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.15 二元运算&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.16-universal-functions.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.16 ufunc 对象&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.17-choose.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.17 choose 函数实现条件筛选&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.18-array-broadcasting.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.18 数组广播机制&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.19-reading-and-writing-arrays.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.19 数组读写&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.20-structured-arrays.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.20 结构化数组&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.21-record-arrays.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.21 记录数组&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.22-memory-maps.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.22 内存映射&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/03-numpy/03.23-from-matlab-to-numpy.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&03.23 从 Matlab 到 Numpy&/a&&/u&&/li&&/ul&&li&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/tree/master/04-scipy/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04. Scipy&/a&&/li&&ul&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.01-scienticfic-python-overview.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.01 SCIentific PYthon 简介&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.02-interpolation-with-scipy.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.02 插值&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.03-statistics-with-scipy.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.03 概率统计方法&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.04-curve-fitting.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.04 曲线拟合&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.05-minimization-in-python.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.05 最小化函数&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.06-integration-in-python.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.06 积分&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.07-ODEs.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.07 解微分方程&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.08-sparse-matrix.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.08 稀疏矩阵&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.09-linear-algbra.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.09 线性代数&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/04-scipy/04.10-sparse-linear-algebra.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&04.10 稀疏矩阵的线性代数&/a&&/u&&/li&&/ul&&li&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/tree/master/05-advanced-python/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05. Python 进阶&/a&&/li&&ul&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.01-overview-of-the-sys-module.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.01 sys 模块简介&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.02-interacting-with-the-OS---os.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.02 与操作系统进行交互:os 模块&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.03-comma-separated-values.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.03 CSV 文件和 csv 模块&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.04-regular-expression.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.04 正则表达式和 re 模块&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.05-datetime.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.05 datetime 模块&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.06-sql-databases.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.06 SQL 数据库&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.07-object-relational-mappers.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.07 对象关系映射&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.08-functions.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.08 函数进阶:参数传递,高阶函数,lambda 匿名函数,global 变量,递归&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.09-iterators.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.09 迭代器&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.10-generators.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.10 生成器&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.11-context-managers-and-the-with-statement.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.11 with 语句和上下文管理器&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.12-decorators.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.12 修饰符&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.13-decorator-usage.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.13 修饰符的使用&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.14-the-operator-functools-itertools-toolz-fn-funcy-module.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.14 operator, functools, itertools, toolz, fn, funcy 模块&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.15-scope.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.15 作用域&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/05-advanced-python/05.16-dynamic-code-execution.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&05.16 动态编译&/a&&/u&&/li&&/ul&&li&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06. Matplotlib&/a&&/li&&ul&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.01-pyplot-tutorial.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.01 Pyplot 教程&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.02-customizing-plots-with-style-sheets.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.02 使用 style 来配置 pyplot 风格&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.03-working-with-text---basic.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.03 处理文本(基础)&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.04-working-with-text---math-expression.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.04 处理文本(数学表达式)&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.05-image-tutorial.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.05 图像基础&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.06-annotating-axes.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.06 注释&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.07-legend.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.07 标签&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.08-figures%2C-subplots%2C-axes-and-ticks.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.08 figures, subplots, axes 和 ticks 对象&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.09-do-not-trust-the-defaults.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.09 不要迷信默认设置&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/06-matplotlib/06.10-different-plots.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&06.10 各种绘图实例&/a&&/u&&/li&&/ul&&li&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/tree/master/07-interfacing-with-other-languages/& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&07. 使用其他语言进行扩展&/a&&/li&&ul&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/07-interfacing-with-other-languages/07.01-introduction.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&07.01 简介&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/07-interfacing-with-other-languages/07.02-python-extension-modules.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&07.02 Python 扩展模块&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/07-interfacing-with-other-languages/07.03-cython-part-1.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&07.03 Cython:Cython 基础,将源代码转换成扩展模块&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/07-interfacing-with-other-languages/07.04-cython-part-2.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&07.04 Cython:Cython 语法,调用其他C库&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/07-interfacing-with-other-languages/07.05-cython-part-3.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&07.05 Cython:class 和 cdef class,使用 C++&/a&&/u&&/li&&li&&u&&a href=&//link.zhihu.com/?target=http%3A//nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/07-interfacing-with-other-languages/07.06-cython-part-4.ipynb& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&07.06}

我要回帖

更多关于 json字符串转对象 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信