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

本站现有博文337篇,共被浏览961347次

本站已经建立2673天!

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