摘要:
1、关于python中对于文件的读取与写入,哪个说法是正确的:C A. open方法不能同时读写,with open方法可以 B. open方法和with open方法都可以一次处理多个文件 C. open方法最后需要写一个close方法关闭文件,with open方法不需要 D. open方法无法 阅读全文
摘要:
1、下面格式化字符串的代码,哪些是错误的:B、C A. 'my name is %s' % 'Mike' B. 'my name is %d' % 'Mike' C. "my name is %s, I'm %s years old." % ['Mike',6] D. "my name is %s, 阅读全文
摘要:
1、一个变量a定义如下 a = ['this', 'test', 4.56, ['inner', 'list']] 下面的表达式结果为False 的有: 'inner' in a 2、下面的表达式结果为False的有:① 1 > 2 or (3 > 4 and 5 > 4) ② (1 > 2 or 阅读全文