IPython是交互式任务的专用工具,它的特殊命令能够帮助开发人人员更好的理解正在编写的代码。踩坑1:IPython是交互式命令行!魔术函数在控制台里输入,不要像我一样傻不拉几写到.py里,不报错才怪【掩面 ?与?? 输出的详细描述。??比?更详细(书上这么写的,我自己暂时没看出来…但的确是都能用的) 举个栗子t?Type: intString form: 1Docstring:int(x=0) -integerint(x, base=10) -integer Convert a number or string to an integer, or return 0 if no argumentsare given. If x is a number, return x.int(). For floating pointnumbers, this truncates towards zero. If x is not a number or if base is given, then x must be a string,bytes, or bytearray instance representing an integer literal in thegiven base. The literal can be preceded by ‘+’ or ‘-‘ and be surroundedby whitespace. The base defaults to 10. Valid bases are 0 and 2-36.Base 0 means to interpret the base from the string as an integer literal.int(‘0b100’, base=0)4