![](/img/trans.png)
[英]How to assign a letter with an accent to mean the same to a letter without the accent in Python?
[英]Python: Assign letter and number to a variable without spaces
我想知道。 我怎样才能得到这样的输出,并将其存储到一个字符串中?
from __future__ import print_function
for i in range(0,3):
if i > 0:
print("G",i,sep="")
输出:
G1
G2
我想知道如何将值存储到字符串中? (循环)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.