TypeError: not enough arguments for format string
print(“分数为%s,等级为%s”%(score,grade))
**需要在score,grade中加上括号
python编程出现:expected an indented block错误。
expected an indented block翻译为:应为缩进块。
python中没有像C语言使用{}来表示从属关系,而是使用缩进表示上下级关系。
mysql 数据库安装不上:
ValueError: only 2 non-keyword arguments accepte
少写了外层的中括号group = array([1.0,1.1],[1.0,1.0],[0,0],[0,0.1])改成下面的
ValueError:index must be monotonic increasing or decreasing
unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape
解决办法:在绝对路径前加个r