摘要:
在python中,==是判断值是否相等,is是判断引用对象是否相等 str1 = '111' str2 = str1[::-1] print(str1, str2) # 111 111 print(id(str1)) # 34650096 print(id(str2)) # 41684848 pri 阅读全文
posted @ 2021-09-09 22:19
毛伢子
阅读(327)
评论(0)
推荐(0)
摘要:
code_qz = 'DD' code_sj = datetime.datetime.now().strftime('%Y%m%d%H%M%S') for i in range(11): code_ls = str(i).zfill(4) print(code_qz + code_sj + code 阅读全文
posted @ 2021-09-09 20:20
毛伢子
阅读(953)
评论(0)
推荐(0)

浙公网安备 33010602011771号