我想寫一個函數,它返回字母按字母順序出現的s中最長的子字符串。例如,如果s = 'azcbobobegghakl',函數應返回'beggh' 這是我的函數,它仍然不完整,但它不返回sub的列表; 返回的錯誤是: "IndexError: string index out of range" def longest_substring(s):
sub=[]
for i in ra
我想寫給出以下結構的程序: struct aPlayer {
string name; // name of player
int wins; // number of wins player has
};
struct aCompetition {
string name; // name of the match
int numPlay
我有一個email_address作爲主鍵的表,並且表中沒有id列。 所以,只要我打的查詢關鍵詞,比如 select email_address from data where email_address like '%@gmail.com' limit 10
它給結果按字母順序意味着所有的電子郵件ID開頭的(如果存在)。 但我不想要一個像字母順序,我要像導致 email_address
_