摘要: jupyter-notebook作为python中的常用开发工具,非常不错,今天听讲座,可以妙用它的提示,各种对象又不同的方法,那就是对象加.后多按一下tab,就会弹出各种提示了,非常好用,来试试吧。 代码为: a = 'Hello world' b = 'jju' a作为字符串对象,输入a.按下t 阅读全文
posted @ 2023-01-02 21:56 叕叒双又 阅读(190) 评论(0) 推荐(0) 编辑
摘要: python中的print函数有个end参数特别有用: 1 for i in range(1, 10): 2 for j in range(1, i + 1): 3 print(f'{j} * {i} = { i * j}') 4 print() 结果: 1 1 * 1 = 1 2 3 1 * 2 阅读全文
posted @ 2023-01-02 21:48 叕叒双又 阅读(145) 评论(0) 推荐(0) 编辑