江林楠学习了一下午后给大家呈现的20分钟速成Python—— 一些基本的语法:1.python无变量声明 直接a = []即可.2.python为对齐语言,用制表符表示语句块的嵌套.3.python语句末尾无;4.python不用{}表示语句块,而是采用:,如 if a == b: a = c for a in b: print(a)5.a.b的形式的函数调用,可以是对象调用函数(同js),也可以命名空间.函数6.单行注释使用#a,多行注释使用"""aaaa"&qu
Gridland Time Limit: 2 Seconds Memory Limit: 65536 KB BackgroundFor years, computer scientists have been trying to find efficient solutions to different computing problems. For some of them efficient algorithms are already available, these are t
执行一个Python脚本的时候,报"IndentationError: unindent does not match any outer indentation level" 错误,搜索了一下相关资料,遇到这个错误,是因为新的Python语法中是不支持的代码对齐中,混用TAB和空格的. # python get_mssql_job_info.py File "get_mssql_job_info.py", line 29 db_sub_conn = pymssql