摘要:
注:本随笔只是mysql知识的积累,如果您看到此随笔,有错误请指正,谢谢!# 标准建表语句DROP TABLE IF EXISTS temp_whc_ceshi2 ; CREATE TABLE IF NOT EXISTS temp_whc_ceshi2(s_no int(20) NOT NULL a 阅读全文
摘要:
# 列表生成式lists = [x * x for x in range(1, 11)]print(lists)# 列表生成式2lists2 = [x * x for x in range(1, 11) if x % 2 == 0]print(lists2)# 列表生成式3lists3 = [x + 阅读全文
摘要:
# 递归函数# 计算阶乘 阶乘函数:factdef fact(n): if n == 1: return 1 return n * fact(n - 1)print(fact(10))# 防止栈溢出的优化def fact_inter(n, pro): if n == 1: return pro re 阅读全文