摘要: 建议19:有节制使用from...import... import VS from...import.... import test ## test 进入局部命令空间 + 进入系统模块字典中 sys.module['test']; from test import a ## a 进入局部命令空间 + 阅读全文
posted @ 2019-12-05 18:13 一花一世界V5 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 建议8:调试语句assert expression, "sentence", python -O xx.py 可以禁用断言,建议少用断言; 建议9:数据交换不推荐使用中间值 语句执行时间: from timeit import Timer Timer('x,y = y,x').timeit()## 阅读全文
posted @ 2019-12-03 17:43 一花一世界V5 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 建议1: pythonic化,可读性; 建议2:起名具有自释性 代码检测建议标准pep8; 建议3:与C语言的区分,虽然其底层是C语言。披着狼皮的羊,看起来Ta就要像一只狼的样子! (1) ”缩进“代替”{ }“ (2) " "和 ‘ ’ 本身不严格区分 (3) X if statence else 阅读全文
posted @ 2019-11-28 11:45 一花一世界V5 阅读(157) 评论(0) 推荐(0) 编辑
摘要: RedBlue: 随机 1:03 05 06 12 13 20 | 13 阅读全文
posted @ 2019-10-22 14:55 一花一世界V5 阅读(71) 评论(0) 推荐(0) 编辑
摘要: m,n 表示图的长宽,单位英尺; 121: 行列数及子图所在的位置; Detail: https://blog.csdn.net/weixin_43685844/article/details/88982811 阅读全文
posted @ 2019-07-08 10:19 一花一世界V5 阅读(677) 评论(0) 推荐(0) 编辑
摘要: n,m 其中正实数表示具体的行(列),-1 表示未指定值。 Detail: https://www.jianshu.com/p/d9df005636a6 阅读全文
posted @ 2019-07-08 10:08 一花一世界V5 阅读(515) 评论(0) 推荐(0) 编辑