原本赋值的变量放到判断里
course_list = ["django", "scrapy", "tornado"]
course_size = len(course_list)
if course_size >= 3:
print("课程数量:{}".format(course_size))
course_list = ["django", "scrapy", "tornado"]
if course_size := len(course_list) >= 3:
print("课程数量:{}".format(course_size))