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

本站现有博文332篇,共被浏览894838

本站已经建立2596天!

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