python多进程 from multiprocessing import Process import os def processFunc(name): print("child process is %s, pid is %s" %(name, os.getpid() ) ) return if __name__ == '__main__': print("Parent process is %s." %(os.getpid() )) p = Process(…
每天一习题,提升Python不是问题!!有更简洁的写法请评论告知我! https://www.cnblogs.com/poloyy/category/1676599.html 题目 打印99乘法表 解题思路 外层循环,获取被乘数 内层循环,获取乘数 答案 for i in range(1, 10): strs = "" for j in range(1, i + 1): strs += f"{i}*{j}={i * j} " print(strs)…