这是vb6代码
Dim i As Long, mystr As String
For i = 0 To 9
mystr = mystr & "\u000" & i & vbCrLf
Next
Me.Text1.Text = mystr
输出必须为:
\ u0000
\ u0001
\ u0002
\ u0003
\ u0004
\ u0005
\ u0006
\ u0007
\ u0008
\ u0009
答案 0 :(得分:0)
mystr = ''
for i in range(10):
mystr = mystr + '\\u000' + str(i) + '\n'
print(mystr)