笨方法学习Python-习题14: 提示和传递
来源:互联网 发布:中心机房云计算 编辑:程序博客网 时间:2024/05/29 18:33
# coding=utf-8from sys import argvscript,user_name = argvprompt = '> 'print("Hi %s,I'm the %s script."%(user_name,script))print("I'd like to ask you a few questions.")print("Do you like me %s?" % user_name)likes = input(prompt)print("Where do you live %s?" % user_name)lives = input(prompt)print("What kind of computer do you have?")computer = input(prompt)print(""" \t*Alright,so you said %r about liking me. \t*You livie in %r. Not sure where that is. \t*And you have a %r computer. Nice.""" % (likes,lives,computer))"""此习题为巩固加深,可以按照自己的理解重新编写脚本,另外请再次加深转义字符,字符格式化"""
阅读全文
0 0
- 笨方法学习Python-习题14: 提示和传递
- 笨方法学Python 习题 14: 提示和传递
- 笨办法学Python习题14 提示和传递
- 习题14 提示和传递
- 习题14--提示和传递
- 笨方法学习Python-习题12:提示别人
- Learn Python The Hard Way学习(14) - 提示和传递
- 笨方法学习Python-习题4:变量(variable)和命名
- 笨方法学习Python-习题19: 函数和变量
- 笨方法学习Python-习题30: Else 和 If
- 笨方法学习Python-习题32: 循环和列表
- 笨方法学习Python-习题35: 分支和函数
- 笨方法学习Python-习题36: 设计和调试
- 笨方法学Python 习题 12: 提示别人
- 笨方法学习Python-习题11:提问
- 笨方法学习Python-习题42: 物以类聚
- 笨方法学习Python-习题43、44
- 笨方法学习Python 习题19 函数和变量 ---学习记录
- PHPcms v9 get标签sql 语句limit
- LeetCode-88:Merge Sorted Array (合并两排序数组)
- PixHawk学习笔记 之 Ubuntu下搭建开发环境
- ListView使用技巧之ViewHolder模式提高效率
- 【codevs 2038】香甜的黄油
- 笨方法学习Python-习题14: 提示和传递
- CustomPlot test
- 购物车加减
- PHP 将数据导出到Excel
- 数据结构 P46-47 算法实现 顺序栈的基本操作
- JSP 页面中用相对路径显示图片
- C++ : Memory model in c++11
- Azure 虚拟机诊断设置问题排查
- native和static native区别