python编程问题
# coding=utf-8
A = 2
print(A)
word = 'words' * 3
print(word)
word = 'a long word '
mun = 16
string = 'bang!'
total = string * (mun - len(word))
print(total)
a = 'friends'
find_the_evil_in_your_friends = a[0] + a[2:4] + a[-3:-1]
print(find_the_evil_in_your_friends)
b='18811406334'
b1=b.replace(b[:8],'*'*8)
print(b1)
search='16'
a='1386-168-0006'
b='1681-222-0006'
print(search + ' is at '+ str(a.find(search))+ ' to '+ str(a.find(search)+len(search))+' of a ' )
print(search + ' is at '+ str(b.find(search))+ ' to '+ str(b.find(search)+len(search))+' of b ' )
print('{} a is a {}'.format('With','word'))
city = input("yinchuan")
url = "The city is {}".format(city)
city = input("yinchua")
url = "The city is {}".format(city)
def f(c):
f-=c*9/5+32
return str(f)+'f'
c1=f(35)
print (c1)
运行这段Python代码时,只运行到第一个url = "The city is {}".format(city),之后的无法显示结果,请问是什么原因?请大神指教