84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
输入一个原始字符串, hello world。 输出转换后的字符串, hello%20world。
新手 不会呀 求大神教怎么才能这样输出。。。。。
业精于勤,荒于嬉;行成于思,毁于随。
如果是对参数的dict:
from urllib import urlencode data = { 'name': 'hello world' } print urlencode(data)
如果是字符串:
from urllib import quote quote('hello world')
from urllib import quote quote(str)
我用 a = raw_input()a = a.replace(' ','%20')print a
解决了 。当时放错了 print才没能做出答案来。。。谢谢各位大神 了
如果是对参数的dict:
如果是字符串:
我用 a = raw_input()
a = a.replace(' ','%20')
print a
解决了 。当时放错了 print才没能做出答案来。。。谢谢各位大神 了