摘要: res = divmod(101, 10)print(f'res:{res}') # res:(10, 1) 阅读全文
posted @ 2023-10-19 17:25 tslam 阅读(19) 评论(0) 推荐(0) 编辑
摘要: ret = chr(65)ret2 = ord('A')print(f'ret:{ret}') # 根据ASCII码找对应字符print(f'ret2:{ret2}') # 根据字符找ASCII码 阅读全文
posted @ 2023-10-19 17:19 tslam 阅读(35) 评论(0) 推荐(0) 编辑
摘要: res = 'jack'def index(): return 123ret = callable(res)ret2 = callable(index)print(f'ret:{ret}') # ret:Falseprint(f'ret2:{ret2}') # ret2:True 阅读全文
posted @ 2023-10-19 17:14 tslam 阅读(5) 评论(0) 推荐(0) 编辑