Show toolbar

2011年10月12日 星期三

Python Practice ex1

標題:Python ex1 練習
Python (main.py):
# -*- coding: utf-8 -*-
def ex1():
    name = input("Please enter your name: ")
    for i in range(0,len(name)):
        print(name[i],"ASCII value is",str(ord(name[i])))
ex1()
說明:
使用Python3進行基礎輸入輸出ASCII編碼轉換練習。

沒有留言:

張貼留言