EADST

Python: Sum the Terminal Input

Python: Sum the Terminal Input

 while 1:
    s = input() # [1,2,3]
    if s != "":
       input_list = s.strip("[").strip("]").split(",")
       a = list(map(int, input_list[:]))
       print(sum(a)) # 6
    else:
        break

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Base64 Plotly EXCEL RGB git Paddle TSV Sklearn Card VSCode Clash PIP API Nginx DeepStream Algorithm Jupyter Django scipy FP32 icon 算法题 Review LLM TTS XML Use 多进程 Website Disk Datetime RL Llama CV RAR Hilton VPN Safetensors uwsgi Magnet FP16 继承 llama.cpp ChatGPT Numpy Search HuggingFace Ptyhon 递归学习法 Ubuntu PDB LaTeX HaggingFace GPT4 v0.dev Rebuttal Transformers Zip XGBoost OpenAI 证件照 Template Paper Translation Tiktoken 阿里云 论文速读 Jev Distillation WebCrawler Vmess VGG-16 Heatmap Bitcoin 图标 净利润 FlashAttention hf Pandas Augmentation LLAMA Dataset Quantization Plate Hotel Statistics 腾讯云 域名 News Baidu Land 个人博客 Data Windows QWEN AI SVR Logo Github Streamlit 自我改进 财报 Markdown C++ 图形思考法 飞书 CLAP Anaconda Web Pillow 搞笑 Proxy OpenCV Math Animate Qwen2.5 音频 DeepSeek PyCharm Conda FP8 Freesound git-lfs Linux Agent PyTorch Vim Pytorch LeetCode Docker CSV CTC 报税 ONNX CUDA Qwen2 mmap Qwen Shortcut JSON SAM TensorRT BF16 Git PDF Gemma Cloudreve printf Attention logger WAN diffusers OCR tqdm MD5 uWSGI Crawler Password LoRA SQL Mixtral 公式 Diagram Tensor 强化学习 Bipartite 长期记忆 SPIE Input Food UI transformers CAM Firewall Bin Random Hungarian YOLO Miniforge NLTK GPTQ Excel Quantize Video Pickle torchinfo 论文 IndexTTS2 Harness COCO API网关 BTC Python tar CC NameSilo 多线程 GGML FP64 ResNet-50 关于博主 InvalidArgumentError BeautifulSoup Permission CEIR GIT TensorFlow Breakpoint SQLite 签证 版权 Jetson ms-swift Knowledge Domain UNIX GoogLeNet NLP Tracking Interview 云服务器 Google Bert Claude Michelin v2ray FastAPI 顶会 Image2Text 第一性原理 ModelScope Color
站点统计

本站现有博文340篇,共被浏览1018338次

本站已经建立2718天!

热门文章
文章归档
回到顶部