2018年9月21日

python学习笔记

摘要: 1、input()函数一次为多个变量赋值 s , t = eval(input()) print('{0},{1}'.format(s,t)) #对于上述代码,输入1,2是可以执行的 #但是因为eval的原因输入字符串会出现NameError: name '我' is not defined这种错误 阅读全文

posted @ 2018-09-21 10:04 shufeixue 阅读(94) 评论(0) 推荐(0) 编辑

导航