错误提示 com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client 错误原因 Mysql8 之前的版本中加密规则是mysql_native_password,而在Mysql8之后,加密规则是caching_sha2_passwo…
day15 内置函数和模块 1.三元表达式 代码如下: x = 1 y = 2 res = 'ok' if x > y else 'no' print(res) 输出结果:no 2.内置函数:重点 需要掌握的: int float str list tuple dict set bool bytes s = frozenset({1,2,3}) # 不可变集合 print(type(s)) 3.面向对象 需要掌握的: object classmethod staticmethod propert…