摘要: code with open("test") as f: for line in f.readlines(): if(line): print(line,"<br>") 阅读全文
posted @ 2020-11-03 16:26 anobscureretreat 阅读(96) 评论(0) 推荐(0)
摘要: code import os import shutil pwd=os.getcwd() for i in os.listdir(pwd): d=os.path.join(pwd,i) if(os.path.isdir(d)): for j in os.listdir(d): f=os.path.j 阅读全文
posted @ 2020-11-03 16:24 anobscureretreat 阅读(806) 评论(0) 推荐(0)
摘要: code void main() { var lst = new List(); lst.add(12); lst.add(13); print(lst.isNotEmpty); } 阅读全文
posted @ 2020-11-03 16:00 anobscureretreat 阅读(84) 评论(0) 推荐(0)
摘要: code main() { print('Hello, World!'); } ///or ///main() => print('Hello, World!'); /// /*outputs $ dart hello_world.dart Hello, World! */ 阅读全文
posted @ 2020-11-03 15:59 anobscureretreat 阅读(134) 评论(0) 推荐(0)
摘要: code import 'dart:io'; import 'dart:core'; import 'dart:collection'; import 'dart:async'; void main() { var lst = new List(); lst.add(3); lst.add(4); 阅读全文
posted @ 2020-11-03 15:51 anobscureretreat 阅读(191) 评论(0) 推荐(0)
摘要: code #!/bin/bash # storing STDOUT, then coming back to it exec 3>&1 exec 1>test14out echo "This should store in the output file" echo "along with this 阅读全文
posted @ 2020-11-03 15:49 anobscureretreat 阅读(136) 评论(0) 推荐(0)