This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #一个调换字母顺序的游戏 | |
| pyg = 'ay' | |
| original = raw_input('Enter a word:') | |
| if len(original) > 0 and original.isalpha(): | |
| word = original.lower() | |
| first = word[0] | |
| new_word = word + first + pyg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #产生随机数 好分配作业 | |
| a = "wangshuaifei" | |
| b = "wangyuanlu" | |
| c = "liqiaozhi" | |
| d = "zhangbinbin" | |
| e = "lichunxiao" | |
| f = "linhongmei" | |
| g = "wudexiang" | |
| h = "liaoruping" |