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

本站现有博文323篇,共被浏览795881

本站已经建立2493天!

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