ex14

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ex14相关的知识,希望对你有一定的参考价值。

 1 # -*-coding:utf-8 -*-
 2 from sys import argv
 3 
 4 script, user_name, city = argv
 5 rompt = ">>"      #巧妙的提示符的运用 取一个变量名就ok了
 6 
 7 print ("Hi %s, I‘m the %s script." %(user_name, script))
 8 print ("I‘d like to ask you a few questions.")
 9 print ("DO you like me %s?" % user_name)
10 likes = input(rompt)
11 
12 print ("where do you live in  %s?" % city)
13 lives = input(rompt)
14 
15 print ("what kind of computer do you have?")
16 computer = input(rompt)
17 
18 print ("""
19 Alright, so you said %s about liking me.
20 You live in %s. Not sure where that is.
21 And you have a %s computer. Nice.
22 """ %(likes, lives, computer))

 

以上是关于ex14的主要内容,如果未能解决你的问题,请参考以下文章

VSCode自定义代码片段14——Vue的axios网络请求封装

ex14 Python运行提示错误need more than 1 value to unpack

ex14 Python运行提示错误need more than 1 value to unpack

Ex 2_14 去掉数组中所有重复的元素..._第二次作业

无法找到指定dll库文件skinH_EL.dll中的输出命令skinH_Attach_EX_

text ex14_miyauchi.ipynb