摘要:
一、未对错误处理时: import argparse import sys def main(number, other_number, output): result = number / other_number print(f'The result is {result}', file=out 阅读全文
摘要:
一、编程定时任务的脚本: import argparse import sys from datetime import datetime import configparser def main(number, other_number, output): result = number * ot 阅读全文
摘要:
一、普通接收参数 import argparse def main(number, other_number): result = number * other_number print(f'The result is {result}') if __name__ == '__main__': pa 阅读全文