总结:TypeError: must be real number, not str

TypeError: must be real number, not str

 用了占位符%f,要注意参数要是数字类型的,而不能是str类型的

原文地址:https://www.cnblogs.com/yayazhang221/p/12060418.html