我正在尝试生成一个python脚本,该脚本接受3个输入参数,并创建一个目录,该目录的名称是这3个参数的连接。我给出的命令是python new.py user1 32 male,我应该得到一个目录名,名为user1_32_male,但我得到的目录名是user_name +“+ age +”+性别。有人能更正一下我的密码吗?
#!/usr/bin/python
import pexpect
import numpy as np
#import matplotlib.pyplot as plt
#import pylab as p
from math import *
from sys impo
我试图通过launch.json将参数传递给我的Python程序,其中一个参数需要特殊的字符,因为它是密码(我计划添加更安全的方式输入密码,但这不是重点)。
这是我的launch.json (密码已更改,但仍带有特殊字符)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/