mysql解压版下载地址:https://dev.mysql.com/downloads/mysql/初始化mysql解压完后打开命令行(cmd)进入mysql的bin目录输入初始化mysql命令:mysqld--initialize-insecure2.添加环境变量复制bin目录如:D:\mysql-5.7.21-winx64\bin计算机-->属性-->高级系统设置-->环境
EOFError: Ran out of input
直接str.decode()找不到decode()方法,所以要用以下方法测试程序:test='\u5220\u9664'test.encode('utf-8').decode('unicode_escape')print(test)打印结果:删除
装饰器前戏importtimedefbar():time.sleep(3)#睡3秒print("inthebar")deftest1(func):print("inthetest1")returnfuncbar=test1(bar)#把bar函数的内存地址传给test1函数(func参数接受bar内存地址),test1函数再returne返回内存地址,再赋值给bar变量bar()#bar变量(内存
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号