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

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

本站已经建立2469天!

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