摘要: 优雅代码 part1 写注释方便自己看,也方便别人阅读 tab键相当于4空格 换行与缩进 换行符\ 导入规范 假设目录: Tree |___m1.py |___m2.py |___Branch |___m3.py |___m4,py 在m2.py写代码 def printself(): print( 阅读全文
posted @ 2023-11-29 23:07 迪士尼在逃南瓜车 阅读(11) 评论(0) 推荐(0)
摘要: 条件 if语句 绝对值 def abs2(n): if n<0: n=-n return n if-else 语句 x=input("x") x=float(x) print("hello") if x<10: print("wa") else: print("ro") print("goodbye 阅读全文
posted @ 2023-11-29 23:06 迪士尼在逃南瓜车 阅读(7) 评论(0) 推荐(0)