2018年9月1日

Python转义字符

摘要: 阅读全文

posted @ 2018-09-01 20:31 糊涂虫Leo 阅读(141) 评论(0) 推荐(0)

Python函数实现99乘法表

摘要: def printLine(row): for col in range(1,row+1): print("{}*{}={}\t".format(col,row,col*row),end=" ") #\t为转义字符,横向制表符,end=" "为实现分段 print("") for row in ra 阅读全文

posted @ 2018-09-01 20:24 糊涂虫Leo 阅读(2506) 评论(0) 推荐(0)

jupyter notebook 快捷操作

摘要: Enter(回车):切换到编辑模式。 Esc:切换到命令模式 Esc + M:将单元格切换到markdown模式。这种模式你可以编辑标题和图片等。 Esc + Y:将单元格切换到代码模式,写代码。 Esc + R:将单元格切换到非markdown的文本编辑模式。 Shift + enter:运行当前 阅读全文

posted @ 2018-09-01 20:13 糊涂虫Leo 阅读(313) 评论(0) 推荐(0)

Python的for循环完成99乘法表

摘要: for row in range(1,10): for col in range(1,row+1): print("{}*{}={}\t".format(col,row,col*row),end=" ") #\t为转义字符,横向制表符,end=" "为实现分段 print("") #实现换行 1*1 阅读全文

posted @ 2018-09-01 20:10 糊涂虫Leo 阅读(2955) 评论(0) 推荐(0)

导航