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

本站现有博文311篇,共被浏览741272

本站已经建立2379天!

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