python exercise 14
来源:互联网 发布:炫踪网络上市吗? 编辑:程序博客网 时间:2024/06/07 15:43
from 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 ("""Alright, so you said %r about liking me.You live in %r. Not sure where that is.And you have a %r computer. Nice.""" % (likes, lives, computer))# C:\Users\Administrator\Desktop\projects\test>ex14.py woo
运行的时候需要 输入变量,就是定义的量“woo” 可以自己随便定义
0 0
- Python Exercise #14
- python exercise 14
- python exercise
- Python Exercise #1
- Python Exercise #2
- Python Exercise #3
- Python Exercise #4
- Python Exercise #5
- Python Exercise #6
- Python Exercise #7
- Python Exercise #8
- Python Exercise #9
- Python Exercise #10
- Python Exercise #11
- Python Exercise #12
- Python Exercise #13
- Python Exercise #15
- Python Exercise #16
- 计算机传输层
- 11.迭代器
- ReactNative调用Android原生模块
- Best of Vim Tips
- ClassNotFoundException: org.apache.hadoop.hbase.ipc.controller.ServerRpcControllerFactory
- python exercise 14
- linux查找神器---find
- 王阳明的心学与禅学有哪些异同?
- VS2008--无法找到“XXX.exe”的调试信息,或者调试信息不匹配
- js实现京东注册
- 12 Vim Tips
- LightOJ-1027-A Dangerous Maze(概率/期望)
- iOS-Delegate-Block-NSNotification的区别和使用
- hdu4348:To the moon(可持久化线段树)