摘要:参考了以下链接:https://stackoverflow.com/questions/592746/how-can-you-print-a-variable-name-in-python 代码如下 def yield_dict(*p): import inspect, re for line in
阅读全文
摘要:原帖地址:https://cloud.tencent.com/developer/article/1608604?from=information.detail.linux%20fg%20bg%E5%85%A8%E7%A7%B0 su:Swith user 切换用户,切换到root用户 cat: C
阅读全文
摘要:原帖地址:https://www.cnblogs.com/zlong123/p/10427519.html #实现回车换行,而不是结束 endstr="end"#重新定义结束符 str="" for line in iter(input,endstr):#每行接收的东西 用了iter的哨兵模式 st
阅读全文