Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
9 つの数字のリストがあり、それらを aList = [1,2,3,4,5,6,7,8,9] などの html に入れたいと考えています。したがって、Pythonでは、次のようなものを入力したい myPage.write("aList[0],aList[1],aList[2],blablabla") 明らかに機能しません...誰かが私を助けてくれますか?
Are you looking for something like:
Note: this has not been tested.
def listToHTML(list): str = "<ul>" for elem in list: str += "<li>" + str(elem) + "</li>" str += "</ul>" return str