Python错误笔记:NameError: name 'M' is not defined
1、在使用name= input()时报 NameError: name 'M' is not defined的错误:
解决方式:使用raw_input()代替input()
资料:https://blog.youkuaiyun.com/dq_dm/article/details/45665069
2、
%d就是普通的输出了
% 2d是将数字按宽度为2,采用右对齐方式输出,若数据位数不...
原创
2020-01-07 15:20:24 ·
4305 阅读 ·
0 评论