小编M. *_*ain的帖子

如何生成随机字符串?

我只是想问一下,就像从随机数字: Random.randint(a, b)

我只是想问一下如何使用随机字符串,randint但这次使用随机字符串.反正呢?

#This program will play a little game

import random

a = ''
b = ''
c = ''
d = ''
e = ''
f = ''

print('Hi. Please enter your name in letters')
name = str(input())
print('Hi ' + name + '. I am going to play a little game. In this game you have to guess a specific name i am thinking right now.')
print('But do not worry. I am going to …
Run Code Online (Sandbox Code Playgroud)

python random

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×1

random ×1