04 2021 档案

摘要:实验任务1: task1_1. x=list(range(10)) print(f"整数输出1:",end="") for i in x: print(i,end=" ") print("\n整数输出2:",end="") for i in x: print(f"{i:02d}",end="-") 阅读全文
posted @ 2021-04-17 21:45 Vat- 阅读(124) 评论(1) 推荐(0)
摘要:任务一x1,y1=1.2,3.57x2,y2=2.26,8.7print("x1={:.1f},y1={:.1f}".format(x1,y1))print("{:<15}".format(y2)) print("{:>15}".format(y2)) print("{:#^40}".format( 阅读全文
posted @ 2021-04-08 00:43 Vat- 阅读(116) 评论(3) 推荐(0)
摘要:实验任务1print("hey, u")print("hey", " u")x = 1y = 2z = 3print(x, y, z)print("x = %d, y = %d, z = %d"%(x,y,z))print("x = {}, y = {}, z = {}".format(x,y,z) 阅读全文
posted @ 2021-04-02 20:49 Vat- 阅读(71) 评论(0) 推荐(0)