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

本站现有博文330篇,共被浏览861438

本站已经建立2570天!

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