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

本站现有博文321篇,共被浏览775120

本站已经建立2465天!

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