摘要: 参考:https://blog.csdn.net/ling_xiobai/article/details/78659981 阅读全文
posted @ 2019-07-10 11:16 jianglin_liu 阅读(3371) 评论(0) 推荐(0) 编辑
摘要: 在c系列语言中,参数的传递方式有值传递与引用传递,而python的参数传递方式是赋值传递,或者称为对象的引用传递。python里的所有数据类型都是对象,所有参数传递时,只是让新变量与原变量指向相同的对象而已,并不存在值传递与引用传递的说法。 1.python变量及其赋值 如下代码示例: 在这一过程中 阅读全文
posted @ 2019-06-24 11:45 jianglin_liu 阅读(1314) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/zbrwhut/article/details/80625702 阅读全文
posted @ 2019-04-20 22:38 jianglin_liu 阅读(1169) 评论(0) 推荐(0) 编辑
摘要: 协程看上去也是子程序,但执行过程中,在子程序内部可中断,然后转而执行别的子程序,在适当的时候再返回来接着执行。类似于CPU中的中断,与函数调用不一样。 测试代码: 运行结果: 最难理解的就是generator和函数的执行流程不一样。函数是顺序执行,遇到return语句或者最后一行函数语句就返回。而变 阅读全文
posted @ 2019-04-01 17:00 jianglin_liu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 参考:1、http://www.liujiangblog.com/course/python/39 2、https://www.cnblogs.com/cicaday/p/python-decorator.html 3、http://www.liujiangblog.com/course/pytho 阅读全文
posted @ 2019-03-22 14:16 jianglin_liu 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/u013510838/article/details/84111031 Session是TensorFlow前后端连接的桥梁。用户利用session使得client能够与master的执行引擎建立连接,并通过session.run()来触发一次计算。 阅读全文
posted @ 2019-03-22 09:42 jianglin_liu 阅读(923) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/yyds/p/7288916.html 阅读全文
posted @ 2019-03-20 14:32 jianglin_liu 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 参考:1、https://blog.csdn.net/anshuai_aw1/article/details/84183378 阅读全文
posted @ 2019-03-18 14:58 jianglin_liu 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 参考:1、https://blog.csdn.net/anshuai_aw1/article/details/83586404 2、https://blog.csdn.net/jiangpeng59/article/details/77533309 阅读全文
posted @ 2019-03-18 14:52 jianglin_liu 阅读(1320) 评论(0) 推荐(1) 编辑
摘要: 参考:1、https://blog.csdn.net/toshibahuai/article/details/79034829 2、https://blog.csdn.net/lanyang123456/article/details/55804982 1、可以利用to_csv方法将csv存为文本格 阅读全文
posted @ 2019-03-15 10:22 jianglin_liu 阅读(1358) 评论(0) 推荐(0) 编辑