{"id":158541,"date":"2019-09-28T10:00:06","date_gmt":"2019-09-28T02:00:06","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=158541"},"modified":"2019-09-20T14:59:41","modified_gmt":"2019-09-20T06:59:41","slug":"python-zim-num","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/python-zim-num.html","title":{"rendered":"\u7528python\u5b9e\u73b0\u82f1\u6587\u5b57\u6bcd\u548c\u76f8\u5e94\u5e8f\u6570\u8f6c\u6362\u7684\u65b9\u6cd5"},"content":{"rendered":"
\u7b2c\u4e00\u6b65\uff1a\u5b57\u6bcd\u8f6c\u6570\u5b57<\/strong><\/span><\/div>\n

\u82f1\u6587\u5b57\u6bcd\u8f6c\u5bf9\u5e94\u6570\u5b57\u76f8\u5bf9\u7b80\u5355\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u8f93\u5165\u4e00\u884c\u9700\u8981\u8f6c\u6362\u7684\u82f1\u6587\u5b57\u6bcd\uff0c\u7136\u540e\u5bf9\u6bcf\u4e00\u4e2a\u5b57\u6bcd\u5728\u6574\u4e2a\u5b57\u6bcd\u8868\u4e2d\u5339\u914d\uff0c\u5e76\u8fd4\u56de\u76f8\u5e94\u7684\u4f4d\u6570\uff0c\u7136\u540e\u7d2f\u52a0\u8fd9\u4e9b\u4f4d\u6570\u5373\u53ef\u3002\u8fc7\u7a0b\u4e2d\uff0c\u4e3a\u4e86\u4f7f\u7ed3\u679c\u66f4\u6709\u53ef\u8bfb\u6027\uff0c\u8f93\u51fa\u76f8\u90bb\u6570\u5b57\u95f4\u600e\u52a0\u4e86\u7a7a\u683c\uff0c\u6bcf\u4e2a\u5bf9\u5e94\u539f\u6765\u5355\u8bcd\u95f4\u589e\u52a0\u9017\u53f7\u3002<\/p>\n

c=\"abcdefghijklmnopqrstuvwxyz\"\r\ntemp=''\r\nlist=[]\r\ns=input()\r\nnum=len(s)\r\nlist.append(s)\r\nfor i in range(0,num):\r\nif list[0][i]==' ':\r\ntemp+=','\r\nelse:\r\nfor r in range(1,26):\r\nif list[0][i]==c[int(r)-1]:\r\ntemp+=str(r)\r\ntemp+=' '\r\nprint(\"\u8f93\u51fa\u7ed3\u679c\u4e3a\uff1a%s\"%temp)\r\n<\/pre>\n
\u7b2c\u4e8c\u6b65\uff1a\u6570\u5b57\u8f6c\u5b57\u6bcd<\/strong><\/span><\/div>\n