摘要:
#1、导入# import cal,time#2、引用# from cal import add# from cal import sub#3、飘红不代表错误原因是pycharm检测不出来#4、*星代表一切(不推荐:# from cal import *# print(add(3,5))# print(sub(3,5))# def add(x,y): # return x + y + 10... 阅读全文
摘要:
1、语法错误:语法不按照Python的语法规则定义。 TypeError: string indices must be integers--字符串必须接受整型(用eval解决) TypeError: change() takes 0 positional arguments but 1 was g 阅读全文